nickzoic / mpy-utils

Utility programs for Micropython ...
MIT License
104 stars 23 forks source link

Fixes #1 and reset at exit #2

Closed Cediddi closed 6 years ago

Cediddi commented 7 years ago

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.

nickzoic commented 7 years ago

Thanks Cediddi ... it looks sensible, I'll test on Tuesday and pull.

Cediddi commented 7 years ago

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

Cediddi commented 7 years ago

Also added/improved some features (reset, delay etc.) and formatted the code.

kalaomer commented 7 years ago

It looks great!

mjeveritt commented 6 years ago

I think you might wanna rebase, perhaps?

nickzoic commented 6 years ago

(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 ...)