Added deep and light sleep functions#31
Conversation
dhalbert
left a comment
There was a problem hiding this comment.
Later, it will also be possible to wake up on button pushes (or pin changes). So you might think about how this will fit into the proposed API. The time arguments could become optional, and there would also be optional button or pin arguments. You may want to make the time arguments require a keyword in that case.
|
Thanks Dan. We can make the time parameter optional once we have the button press wake feature added. I think it will work as it is for now. |
|
Just for completeness, here's the test script I used to test neopixels for light sleep: For deep sleep, I basically used a slightly modified version of Dan's script at adafruit/circuitpython#3767 (comment) |
tannewt
left a comment
There was a problem hiding this comment.
Looks good to me too! Thanks!
|
Excellent :) |
Updating https://github.com/adafruit/Adafruit_CircuitPython_BMP3XX to 1.3.0 from 1.2.3: > Merge pull request adafruit/Adafruit_CircuitPython_BMP3XX#13 from ladyada/master Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 2.10.0 from 2.9.5: > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#99 from FoamyGuy/wrapping Updating https://github.com/adafruit/Adafruit_CircuitPython_MagTag to 1.2.0 from 1.1.2: > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#31 from makermelissa/deepsleep
Fixes #20. This adds the deep and light sleep functions.