This is a little helper script that can be used to wait for a single asyncio
task to finish, then cancel other waiting tasks.
My use-case for this is:
- waiting on user input
- ...while waiting on cancellation events input (via pub-sub)
This demonstrates using the RMT peripheral on the ESP32-S3 as a 10-bit serial transceiver.
The demo uses a shared GPIO pin (6) but can be separated to two pins. It initializes at 100kHz and begins sending a sequence of 10-bit numbers.
This only works for Windows, but you can easily modify it for Linux. It would roughly be the same, except you would need to modify the "linux" sections in the json files.
OpenOCD-20181130.7z
is used in this guide. If you use a different version, you'll have to update the json files.; -------------------------------- | |
; NSIS packaging/install script with portable option! | |
; Docs: http://nsis.sourceforge.net/Docs/Contents.html | |
; Made for electron-boilerplate | |
; Based off this answer by Anders: | |
; https://stackoverflow.com/questions/13777988/use-nsis-to-create-both-normal-install-and-portable-install | |
; -------------------------------- | |
; -------------------------------- | |
; Variables |
164c164 | |
< gnuplot = exec('gnuplot > '+options.filename, (options.exec ? options.exec : {}), options.finish || post_gnuplot_processing); | |
--- | |
> gnuplot = exec('gnuplot > '+options.filename, (options.exec ? options.exec : {}), post_gnuplot_processing); | |
166c166 | |
< gnuplot = exec('gnuplot | ps2pdf - '+options.filename, (options.exec ? options.exec : {}), options.finish || post_gnuplot_processing); | |
--- | |
> gnuplot = exec('gnuplot | ps2pdf - '+options.filename, (options.exec ? options.exec : {}), post_gnuplot_processing); |