Bernhard Boser
1f14d39364
remove two extra closing angular brackets
2020-12-08 11:50:45 -08:00
Scott Shawcroft
40118bcf57
Add board_deinit
for use with sleep
...
This changes lots of files to unify `board.h` across ports. It adds
`board_deinit` when CIRCUITPY_ALARM is set. `main.c` uses it to
deinit the board before deep sleeping (even when pretending.)
Deep sleep is now a two step process for the port. First, the
port should prepare to deep sleep based on the given alarms. It
should set alarms for both deep and pretend sleep. In particular,
the pretend versions should be set immediately so that we don't
miss an alarm as we shutdown. These alarms should also wake from
`port_idle_until_interrupt` which is used when pretending to deep
sleep.
Second, when real deep sleeping, `alarm_enter_deep_sleep` is called.
The port should set any alarms it didn't during prepare based on
data it saved internally during prepare.
ESP32-S2 sleep is a bit reorganized to locate more logic with
TimeAlarm. This will help it scale to more alarm types.
Fixes #3786
2020-12-08 10:52:25 -08:00
Dan Halbert
1df033465a
Merge pull request #3806 from pewpew-game/rotarydoc
...
Remove warning about lack of support on M0 from rotaryio
2020-12-08 13:20:03 -05:00
Radomir Dopieralski
2c546ab768
Remove warning about lack of support on M0 from rotaryio
...
It seems that this warning no longer applies.
2020-12-08 15:54:34 +01:00
microDev
fc23a0cc8a
implement ota module
2020-12-08 11:30:00 +05:30
Bernhard Boser
413885a529
fix typspec in function declarations
2020-12-07 17:45:21 -08:00
Bernhard Boser
9903c9e855
fixed (?) typespec for callback functions
2020-12-07 16:50:52 -08:00
Bernhard Boser
5875a27fa8
removed extra triple quote
2020-12-07 16:32:38 -08:00
Bernhard Boser
9412c3f58e
moved misplaced triple-quote
2020-12-07 16:22:09 -08:00
Bernhard Boser
534b48fcfe
remove a ~ from doc that causes an error; add ExtType.c to circuitpy_defns.mk
2020-12-07 16:08:16 -08:00
Bernhard Boser
b5b6b6d0f2
add ExtType, update doc, add a test
2020-12-07 15:40:02 -08:00
Dan Halbert
054eafd42f
Merge pull request #3797 from dhalbert/reset-reason-run-reason-available
...
Make ResetReason and RunReason available
2020-12-07 15:41:45 -05:00
Dan Halbert
169b487509
Include wifi.radio singleton in gc
2020-12-07 11:07:56 -05:00
Dan Halbert
9391c8f9dd
Make ResetReason and RunReason available
2020-12-06 12:00:00 -05:00
Dan Halbert
2f0e676fcb
update doc per review
2020-12-03 22:06:02 -05:00
Dan Halbert
57fa6bece8
allow radio.enabled to be settable
2020-12-03 21:27:35 -05:00
Scott Shawcroft
1130b80e2a
Merge pull request #3612 from gamblor21/bus_device
...
Moving Adafruit_CircuitPython_BusDevice to core
2020-12-02 13:23:02 -08:00
Scott Shawcroft
608c98501b
Merge remote-tracking branch 'adafruit/main' into msgpack
2020-12-02 13:10:39 -08:00
Bernhard Boser
44bc75af37
output little endian; update example
2020-12-01 18:38:47 -08:00
Bernhard Boser
f38bd59c6b
added signatures to documenation
2020-12-01 18:38:15 -08:00
Bernhard Boser
e19782633a
removed blanks to make pre-commit check happy
2020-12-01 18:38:14 -08:00
Bernhard Boser
513253bc3f
moved logic to shared-module and added documentation
2020-12-01 18:38:14 -08:00
Bernhard Boser
90c203a3dd
add module msgpack
2020-12-01 18:38:14 -08:00
Dan Halbert
72fa7d88b8
fix doc errors
2020-12-01 20:13:46 -05:00
Dan Halbert
8b7c23c1ee
address review comments
2020-12-01 20:01:14 -05:00
gamblor21
d3bbb99e07
Fixing stubs
2020-12-01 17:49:15 -06:00
Mark
237385798c
Merge branch 'main' into bus_device
2020-12-01 15:47:16 -06:00
Dan Halbert
65e2fe4654
fix stub problems; touch up doc
2020-11-27 23:27:15 -05:00
Dan Halbert
596e0e4bd2
merge from upstream
2020-11-27 16:06:57 -05:00
Dan Halbert
e308a9ec11
working! PinAlarm not implemented yet.
2020-11-27 16:03:37 -05:00
Dan Halbert
104a089677
deep sleep working; deep sleep delay when connected
2020-11-26 22:06:37 -05:00
Jeff Epler
7923aa0a62
Merge pull request #3708 from hierophect/esp32s2-udp
...
ESP32-S2: Add UDP with recvfrom_into and sendto
2020-11-25 21:11:20 -06:00
Jeff Epler
6fd123a5c4
Merge pull request #3758 from tannewt/update_connect_doc
...
Update wifi.Radio.connect doc
2020-11-25 21:09:56 -06:00
Dan Halbert
ef0830bfe2
merge from upstream + wip
2020-11-25 17:52:06 -05:00
Dan Halbert
9dbea36eac
changed alarm.time API
2020-11-25 15:09:27 -05:00
Dan Halbert
f868cc5dd0
some API renaming and bug fixes; fix docs
2020-11-24 23:37:05 -05:00
arturo182
ca1a85c47f
displayio: Fix ColorConverter make_* methods
2020-11-25 03:39:14 +01:00
Scott Shawcroft
4ac11c8d31
Update wifi.Radio.connect doc
...
Now it includes bssid info.
2020-11-24 17:54:39 -08:00
hierophect
510f464234
Merge branch 'main' into esp32s2-udp
2020-11-24 18:28:10 -05:00
Lucian Copeland
ba6e15b070
Fix stubs
2020-11-24 11:32:18 -05:00
microDev
9dd1783da5
Merge branch 'main' into ps2io-S2
2020-11-24 11:11:11 +05:30
Dan Halbert
7a45afc549
working, but need to avoid deep sleeping too fast before USB ready
2020-11-23 22:44:53 -05:00
Lucian Copeland
8ffd973e22
Merge remote-tracking branch 'upstream/main' into esp32s2-udp
2020-11-23 18:40:14 -05:00
Dan Halbert
3abee9b256
compiles; maybe ready to test, or almost
2020-11-22 21:52:37 -05:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
Dan Halbert
75559f35cc
wip: ResetReason to microcontroller.cpu
2020-11-21 23:29:52 -05:00
Dan Halbert
e4c66990e2
compiles
2020-11-20 23:33:39 -05:00
Dan Halbert
39e1f52e28
wip; not compiling yet
2020-11-19 17:47:12 -05:00
Dan Halbert
649c930536
wip
2020-11-19 15:43:39 -05:00
microDev
b56645808c
fix crash on user code exit
2020-11-19 11:44:22 +05:30
Dan Halbert
5bb3c321e9
merge from main
2020-11-19 00:29:14 -05:00
Dan Halbert
682054a216
WIP: redo API; not compiled yet
2020-11-19 00:23:27 -05:00
Jeff Epler
f61f8f999b
EPaperDisplay: add rotation property
...
untested, because I don't want to mess my magtag demo up :) but it builds
2020-11-18 18:06:31 -06:00
Lucian Copeland
0bbdf05936
Implement recvfrom_into and sendto for UDP
2020-11-17 16:11:04 -05:00
Scott Shawcroft
66fb095069
Merge pull request #3667 from microDev1/watchdog-s2
...
ESP32S2: Support for WatchDog
2020-11-16 15:01:54 -08:00
Dan Halbert
ffff02c053
Merge remote-tracking branch 'adafruit/main' into sleep
2020-11-16 12:06:11 -05:00
Dan Halbert
bb77f1d130
wip: initial code changes, starting from @tannewt's sleepio branch
2020-11-16 11:56:20 -05:00
Scott Shawcroft
78ccac930f
Add .busy property to EPaperDisplay
2020-11-13 18:57:52 -08:00
Scott Shawcroft
8d4296f964
Add board.DISPLAY to MagTag. Fix luma computation
...
* Initialize the EPaper display on the MagTag at start.
* Tweak the display send to take a const buffer.
* Correct Luma math
* Multiply the blue component, not add.
* Add all of the components together before dividing. This
reduces the impact of truncated division.
2020-11-13 18:57:52 -08:00
Scott Shawcroft
8d3a878152
Merge pull request #3681 from adafruit/6.0.x
...
Merge protomatter update back into `main`
2020-11-12 14:51:53 -08:00
Scott Shawcroft
9da99675b1
Correct display sequence format docs
2020-11-10 16:44:09 -08:00
Lucian Copeland
21ca1b8c2b
Merge remote-tracking branch 'upstream/main' into esp32s2-udp
2020-11-10 14:59:32 -05:00
microDev
10e8b8cf45
move port specific check
2020-11-11 00:24:01 +05:30
Jeff Epler
0ff20cdd85
RGBMatrix: Detect invalid bit_depth selection
...
Closes : #3650
2020-11-09 08:27:46 -06:00
gamblor21
4c93db3595
Renamed to adafruit_bus_device
2020-11-03 18:35:20 -06:00
gamblor21
197539bd82
Moved I2CDevice and SPI to match python library
2020-11-03 17:30:33 -06:00
Scott Shawcroft
9bf77905e3
Merge pull request #3622 from sw23/main
...
Fixing remaining stub mypy issues + run check-stubs to CI
2020-11-02 18:16:32 -08:00
sw23
88fcf4ef7e
Removing implementation-specific values for socket/socketpool class attributes
2020-11-02 19:59:07 -05:00
gamblor21
8bbbb2833a
Fixes from testing SPI
2020-11-01 21:38:20 -06:00
gamblor21
7dd53804a0
Fixed stubs again
2020-11-01 10:31:31 -06:00
gamblor21
76c1153380
Fixed stubs
2020-11-01 08:57:31 -06:00
gamblor21
5ea09fe348
Fixed stubs
2020-10-31 13:37:05 -05:00
gamblor21
78477a374a
Initial SPI commit
2020-10-31 12:17:29 -05:00
Dan Halbert
144eb131ae
Merge pull request #3627 from adafruit/6.0.x
...
Merge 6.0.x bugfixes to main
2020-10-31 12:28:20 -04:00
sw23
1f179b3317
Adding socket and socketpool class attributes
2020-10-30 23:19:27 -04:00
sw23
6a63d20a5d
Fixing remaining stub mypy issues + run check-stubs to CI
2020-10-30 18:56:40 -04:00
sw23
9f3a1fe27b
Fixing stub for wifi_radio_ping
2020-10-30 01:29:58 -04:00
sw23
ad166ca479
Fixing make stub warnings and mypy issuesmak
2020-10-29 20:15:34 -04:00
gamblor21
e7da852db7
Fixing review comments
2020-10-29 16:13:03 -05:00
Scott Shawcroft
7fd73c7d39
Initial UDP work. Need to test
2020-10-28 18:08:31 -07:00
Scott Shawcroft
7cbc50962b
Merge pull request #3611 from tannewt/esp32s2_eink_portal
...
Add Adafruit ESP EInk Portal and grayscale EInk support
2020-10-28 14:45:29 -07:00
Scott Shawcroft
9a4efed8cb
Start tweaking the workflow to sleep
2020-10-27 17:55:03 -07:00
Scott Shawcroft
85dadf3a56
More API changes
2020-10-27 16:18:39 -07:00
Scott Shawcroft
1196d4bcf6
move to new module
2020-10-27 16:18:38 -07:00
microDev
930cf14dce
Add check for invalid io, function to disable all alarms
2020-10-27 16:17:26 -07:00
microDev
e35938971a
Add description of alarm modules
2020-10-27 16:16:55 -07:00
microDev
59df1a11ad
Add alarm_touch module
2020-10-27 16:16:52 -07:00
microDev
da449723df
Fix build error
2020-10-27 16:16:15 -07:00
microDev
4d8ffdca8d
restructure alarm modules
2020-10-27 16:15:09 -07:00
microDev
e5ff55b15c
Renamed alarm modules
2020-10-27 16:13:25 -07:00
microDev
21ba61afbb
Add function to disable alarm
2020-10-27 16:13:25 -07:00
microDev
05a3f203db
Add function to get time elapsed during sleep
2020-10-27 16:13:25 -07:00
microDev
e310b871c8
Get io wake working
2020-10-27 16:13:25 -07:00
microDev
90b9ec6f2c
Initial Sleep Support
2020-10-27 16:13:22 -07:00
gamblor21
2374b0d013
Fixed whitespace issues
2020-10-27 09:13:14 -05:00
gamblor21
9ec224539b
Clean up
2020-10-27 08:43:51 -05:00
Scott Shawcroft
0d1649880f
Add grayscale EInk support
2020-10-26 16:59:59 -07:00
gamblor21
8a379830a8
Added doc and translations
2020-10-26 16:54:24 -05:00
Christian Walther
99a3750a2c
Fix lost board.SPI and board.I2C after explicitly deiniting them.
...
After calling board.SPI().deinit(), calling board.SPI() again would return the unusable deinited object and there was no way of getting it back into an initialized state until the end of the session.
2020-10-26 22:44:38 +01:00
Jeff Epler
c9f7df3bab
canio: Give implementation-specific limits for CAN.Listen
2020-10-26 10:06:49 -05:00