Pidog does not run in Idle3

Hi delaneybill, it may be possible to do what you wish, but it’s a bit convoluted. You need to wrap the main python code inside a parent script that generates a ctrl-c to clear the linux kernel and free the MCU. Essentially the parent wrapper takes control of the main executable script, to start, stop and free it’s resources which the child script itself cannot do.

I have a couple of minimalist scripts to show this.

The main script also needs to use an os._exit() rather than an exit(), which is not totally clean, but as far as I can tell the wrapper does clean up properly after execution. I’ve not pushed it nor had time to fully verify, just a very quick trial, so ultimately may not work 100% for you, nor for all pidog behaviours. My pidog library is also a couple of years old, so again, this could impact your results with respect to mine.

I can post minimalist samples for your verification, but I’d need to spend a bit of time formatting the code for this forum, so I’ll only bother if any interest