Closed Cediddi closed 6 years ago
Thanks Cediddi ... it looks sensible, I'll test on Tuesday and pull.
The fix I sent earlier was a bad approach, so I updated my branch with the correct way of doing it. The problem I had was, I have a loop in main.py that should be broken and a startup routine in boot.py which should not be broken. Damien said, if we drop on raw repl and reboot, main.py shouldn't run at all. micropython/micropython#2936
Also added/improved some features (reset, delay etc.) and formatted the code.
It looks great!
I think you might wanna rebase, perhaps?
(wow, sorry, I had alerts turned off for this project and hadn't noticed all this in here! I'm looking at rebasing it now ...)
This fixes #1 as well as adds an atexit registration. This changes the behavior of reset method as it wasn't soft-resetting the board previously.