forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Initial alarm and sleep PR: time alarms with light and deep sleep; PinAlarms not yet implemented #3767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Initial alarm and sleep PR: time alarms with light and deep sleep; PinAlarms not yet implemented #3767
Changes from 39 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
90b9ec6
Initial Sleep Support
microdev1 3a30887
Update soft reboot message
microdev1 e310b87
Get io wake working
microdev1 05a3f20
Add function to get time elapsed during sleep
microdev1 21ba61a
Add function to disable alarm
microdev1 e5ff55b
Renamed alarm modules
microdev1 4d8ffdc
restructure alarm modules
microdev1 da44972
Fix build error
microdev1 59df1a1
Add alarm_touch module
microdev1 e359389
Add description of alarm modules
microdev1 930cf14
Add check for invalid io, function to disable all alarms
microdev1 0e444f0
Implement sleep on code.py exit
microdev1 354536c
Update translation
microdev1 1196d4b
move to new module
tannewt 85dadf3
More API changes
tannewt 9a4efed
Start tweaking the workflow to sleep
tannewt bb77f1d
wip: initial code changes, starting from @tannewt's sleepio branch
dhalbert ffff02c
Merge remote-tracking branch 'adafruit/main' into sleep
dhalbert 682054a
WIP: redo API; not compiled yet
dhalbert 5bb3c32
merge from main
dhalbert 649c930
wip
dhalbert cd436ba
Merge remote-tracking branch 'adafruit/main' into sleep
dhalbert 39e1f52
wip; not compiling yet
dhalbert e4c6699
compiles
dhalbert 75559f3
wip: ResetReason to microcontroller.cpu
dhalbert a0f1ec3
wip
dhalbert 25591a3
Merge branch 'esp32s2-common-hal-mcu-delay-us' into sleep
dhalbert 3abee9b
compiles; maybe ready to test, or almost
dhalbert 7a45afc
working, but need to avoid deep sleeping too fast before USB ready
dhalbert f868cc5
some API renaming and bug fixes; fix docs
dhalbert 9dbea36
changed alarm.time API
dhalbert ef0830b
merge from upstream + wip
dhalbert 104a089
deep sleep working; deep sleep delay when connected
dhalbert e308a9e
working! PinAlarm not implemented yet.
dhalbert 596e0e4
merge from upstream
dhalbert f96475c
update Requests; rolled back by accident
dhalbert 65e2fe4
fix stub problems; touch up doc
dhalbert 2830cc9
make translate
dhalbert 28d9e91
Disable complex arithmetic on SAMD21 builds to make space
dhalbert 8b7c23c
address review comments
dhalbert 72fa7d8
fix doc errors
dhalbert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule Adafruit_CircuitPython_Requests
updated
3 files
+22 −4 | adafruit_requests.py | |
+9 −4 | tests/legacy_test.py | |
+31 −0 | tests/reuse_test.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-11-24 15:40-0500\n" | ||
"POT-Creation-Date: 2020-11-27 23:57-0500\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -844,6 +844,10 @@ msgstr "" | |
msgid "Expected an Address" | ||
msgstr "" | ||
|
||
#: shared-bindings/alarm/__init__.c | ||
msgid "Expected an alarm" | ||
msgstr "" | ||
|
||
#: shared-module/_pixelbuf/PixelBuf.c | ||
#, c-format | ||
msgid "Expected tuple of length %d, got %d" | ||
|
@@ -989,6 +993,10 @@ msgstr "" | |
msgid "I2SOut not available" | ||
msgstr "" | ||
|
||
#: ports/esp32s2/common-hal/alarm/pin/__init__.c | ||
msgid "IOs 0, 2 & 4 do not support internal pullup in sleep" | ||
msgstr "" | ||
|
||
#: shared-bindings/aesio/aes.c | ||
#, c-format | ||
msgid "IV must be %d bytes long" | ||
|
@@ -1440,6 +1448,10 @@ msgid "" | |
"%d bpp given" | ||
msgstr "" | ||
|
||
#: ports/esp32s2/common-hal/alarm/__init__.c | ||
msgid "Only one alarm.time alarm can be set." | ||
msgstr "" | ||
|
||
#: shared-module/displayio/ColorConverter.c | ||
msgid "Only one color can be transparent at a time" | ||
msgstr "" | ||
|
@@ -1497,6 +1509,10 @@ msgstr "" | |
msgid "Pin number already reserved by EXTI" | ||
msgstr "" | ||
|
||
#: ports/esp32s2/common-hal/alarm/__init__.c | ||
msgid "PinAlarm not yet implemented" | ||
msgstr "" | ||
|
||
#: shared-bindings/rgbmatrix/RGBMatrix.c | ||
#, c-format | ||
msgid "" | ||
|
@@ -1558,7 +1574,7 @@ msgstr "" | |
msgid "RTC calibration is not supported on this board" | ||
msgstr "" | ||
|
||
#: shared-bindings/time/__init__.c | ||
#: shared-bindings/alarm/time/TimeAlarm.c shared-bindings/time/__init__.c | ||
msgid "RTC is not supported on this board" | ||
msgstr "" | ||
|
||
|
@@ -1704,6 +1720,10 @@ msgstr "" | |
msgid "Supply at least one UART pin" | ||
msgstr "" | ||
|
||
#: shared-bindings/alarm/time/TimeAlarm.c | ||
msgid "Supply one of monotonic_time or epoch_time" | ||
msgstr "" | ||
|
||
#: shared-bindings/gnss/GNSS.c | ||
msgid "System entry must be gnss.SatelliteSystem" | ||
msgstr "" | ||
|
@@ -1767,6 +1787,10 @@ msgstr "" | |
msgid "Tile width must exactly divide bitmap width" | ||
msgstr "" | ||
|
||
#: shared-bindings/alarm/time/TimeAlarm.c | ||
msgid "Time is in the past." | ||
msgstr "" | ||
|
||
#: ports/nrf/common-hal/_bleio/Adapter.c | ||
#, c-format | ||
msgid "Timeout is too long: Maximum timeout length is %d seconds" | ||
|
@@ -2481,6 +2505,10 @@ msgstr "" | |
msgid "end_x should be an int" | ||
msgstr "" | ||
|
||
#: shared-bindings/alarm/time/TimeAlarm.c | ||
msgid "epoch_time not supported on this board" | ||
msgstr "" | ||
|
||
#: ports/nrf/common-hal/busio/UART.c | ||
#, c-format | ||
msgid "error = 0x%08lX" | ||
|
@@ -2850,6 +2878,10 @@ msgstr "" | |
msgid "invalid syntax for number" | ||
msgstr "" | ||
|
||
#: ports/esp32s2/common-hal/alarm/pin/__init__.c | ||
msgid "io must be rtc io" | ||
msgstr "" | ||
|
||
#: py/objtype.c | ||
msgid "issubclass() arg 1 must be a class" | ||
msgstr "" | ||
|
@@ -3537,6 +3569,10 @@ msgstr "" | |
msgid "trapz is defined for 1D arrays of equal length" | ||
msgstr "" | ||
|
||
#: ports/esp32s2/common-hal/alarm/pin/__init__.c | ||
msgid "trigger level must be 0 or 1" | ||
msgstr "" | ||
|
||
#: extmod/ulab/code/linalg/linalg.c | ||
msgid "tuple index out of range" | ||
msgstr "" | ||
|
@@ -3679,6 +3715,10 @@ msgstr "" | |
msgid "vectors must have same lengths" | ||
msgstr "" | ||
|
||
#: ports/esp32s2/common-hal/alarm/pin/__init__.c | ||
msgid "wakeup conflict" | ||
msgstr "" | ||
|
||
#: ports/esp32s2/common-hal/watchdog/WatchDogTimer.c | ||
msgid "watchdog not initialized" | ||
msgstr "" | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.