Kamil Tomaszewski
ff807f8f19
Fix incorrect use of allocate_memory()
2021-09-04 11:17:39 +02:00
Dan Halbert
41168c8008
Merge pull request #5222 from Neradoc/nera-board-id-in-bootout
...
Make the board ID available in board and boot_out
2021-08-26 19:21:27 -04:00
Dan Halbert
fa63a41fc4
Merge pull request #5217 from tannewt/ble_workflow_api_v2
...
Two tweaks to BLE workflow
2021-08-26 17:34:06 -04:00
Neradoc
c70ec3fbbc
add the Board ID to boot_out.txt
2021-08-26 23:11:55 +02:00
Scott Shawcroft
a5f2f6e1b1
Two tweaks to BLE workflow
...
1. Use autoreload for restarting after a write. This gives time for
a follow up command before restarting BLE.
2. Switch to recursive deletion of directories. This greatly
simplifies deleting directories with contents.
Fixes https://github.com/adafruit/Adafruit_CircuitPython_BLE_File_Transfer/issues/7
2021-08-24 13:57:42 -07:00
Jeff Epler
5c9f7e2fe4
simplify printing a compressed message
2021-08-23 20:23:23 -05:00
microDev
25437dcb33
Merge branch 'main' into atexit
2021-08-20 09:45:54 +05:30
microDev
bdf8bc58ed
allow exception raise inside atexit callback
2021-08-16 22:35:04 +05:30
microDev
1c4a6c3667
atexit module refinements
...
- add test for atexit module
- add callback to gc collection
- fix callback memory allocation
- execute callback on both code and repl exit
2021-08-16 21:37:32 +05:30
Scott Shawcroft
e3fa6e2c35
Merge pull request #5089 from tannewt/disable_ble_workflow
...
Add ability to disable BLE workflow
2021-08-05 11:21:17 -07:00
Scott Shawcroft
1e225610cc
Add ability to disable BLE workflow
...
Call `supervisor.disable_ble_workflow()` and the BLE workflow will
be disabled until the chip is reset.
This also includes a couple fixes:
1. Terminals can now be deinit by setting the tilegrid to NULL. This
prevents using the tilegrid before display is init.
2. Fix BLE serial send amount when sending more than a single packet.
Fixes #5049
2021-08-02 18:37:19 -07:00
Christian Walther
09e6846135
Fix empty boot_out.txt
...
A pointer to the FIL structure was kept after it went out of scope.
Apparently this happened to work until cf97793
added the `result`
variable that clobbered it.
Fixes #5062
2021-08-02 23:46:33 +02:00
microDev
a3998d0626
add atexit module
2021-07-30 09:32:28 +05:30
Jeff Epler
4e786494dd
Remove settings.py/txt as alternatives for boot.py
...
Closes : #5064
2021-07-26 13:04:41 -05:00
microDev
e790ff7327
Merge pull request #5036 from tannewt/esp_oserror0
...
Remove OSError(0) and old network modules
2021-07-23 11:00:56 +05:30
Christian Walther
cf97793af8
Add supervisor.get_previous_traceback() function.
...
Useful for #1084 .
2021-07-22 12:23:55 -04:00
Scott Shawcroft
f84cb94819
Remove OSError(0) and old network modules
...
The newer modules are `socketpool` and `ssl`.
Fixes #3924 , related to #2021 , closes #1880 , closes #2273 , closes #2274
2021-07-21 17:33:40 -07:00
Scott Shawcroft
0fadf028ef
Create first BLE-only board, Micro:Bit v2
...
This fixes build issues with USB off, tweaks the README to allow
for BLE-only boards and adds the Micro:Bit v2 definition.
Fixes #4546
2021-07-14 09:55:51 -07:00
Scott Shawcroft
3177973843
Add BLE serial service
2021-06-25 15:00:10 -07:00
Scott Shawcroft
d67fb852a1
Merge pull request #3454 from cwalther/setnextcode
...
Add supervisor.set_next_code_file()
2021-06-25 11:00:53 -07:00
Scott Shawcroft
dc76306cfa
Enable a BLE workflow
...
nRF CircuitPython boards will now provide the file transfer
service defined here: https://github.com/adafruit/Adafruit_CircuitPython_BLE_File_Transfer
USB capable boards will only advertise if previously bonded to a
device or if the reset button is pressed during the fast blue
flashes on start up. When pressed, the board will restart again but
the blue period will not flash.
Boards without USB will always advertise.
When previously bonded, the advertisement is private so that no
other peers can connect. If advertising publicly, the tx power is
lowered to reduce the likelihood of bonding from a distance.
This PR also fixes issues with loading identities of bonded peers
so that our address can now be resolved and we can resolve others'
addresses when scanning.
2021-06-24 12:59:14 -07:00
Lucian Copeland
372ddfd562
Fix deep sleep masking, cleanup
2021-06-20 17:20:47 -04:00
Lucian Copeland
2c30312dd4
Fix waitskip behavior
2021-06-20 16:57:20 -04:00
Lucian Copeland
cf9741bd3a
Merge remote-tracking branch 'upstream/main' into setnextcode
2021-06-20 15:25:37 -04:00
Dan Halbert
32eec85230
compiles
2021-06-14 20:54:43 -04:00
Scott Shawcroft
561ffec693
Merge remote-tracking branch 'adafruit/main' into simplify_status_led
2021-05-20 13:46:42 -07:00
Scott Shawcroft
5643355e90
Merge remote-tracking branch 'adafruit/main' into simplify_status_led
2021-05-20 08:35:15 -07:00
Scott Shawcroft
642fbcf87a
Handle status led power
...
This no longer turns on status LED power before running user code.
Therefore, use of the status LED on some boards will also have to
enable the power.
2021-05-19 10:57:14 -07:00
Scott Shawcroft
6164d44e6d
Turn off LED after REPL
2021-05-18 11:32:45 -07:00
Lucian Copeland
633d83cc3e
Merge remote-tracking branch 'upstream/main' into sleep-revamp
2021-05-17 18:57:10 -04:00
Scott Shawcroft
5c33c9d597
Fix SAMD
...
RTC needed to wait for sync. NeoPixel on SAMD doesn't need disabled
caches. It just needed timing adjustment for 120mhz clock speed.
2021-05-14 16:14:24 -07:00
Scott Shawcroft
689ec86225
Merge pull request #4754 from dhalbert/fix-endpoint-checking
...
Fix endpoint checking; Clean up safe mode printing
2021-05-14 11:25:01 -07:00
Scott Shawcroft
1a0b4193b7
Simplify the status LED to save power
...
This also removes the need to pin share because we don't use the
status LED while user code is running.
The status flashes fallback to the HW_STATUS LED if no RGB LED is
present. Each status has a unique blink pattern as well.
One caveat is the REPL state. In order to not pin share, we set the
RGB color once. PWM and single color will be shutoff immediately but
DotStars and NeoPixels will hold the color until the user overrides
it.
Fixes #4133
2021-05-13 14:41:20 -07:00
Lucian Copeland
295103bb31
Merge remote-tracking branch 'upstream/main' into sleep-revamp
2021-05-13 16:22:12 -04:00
Dan Halbert
0651ef17dd
Fix endpoint checking; Clean up safe mode printing.
2021-05-12 15:53:52 -04:00
Lucian Copeland
0d3c5222d8
Merge remote-tracking branch 'upstream/main' into stm-alarm
2021-05-10 17:30:33 -04:00
Dan Halbert
4b45c37516
Do USB init even in safe mode
2021-05-08 11:03:05 -04:00
Dan Halbert
ebf9dcb47a
Merge pull request #4689 from dhalbert/dynamic-usb-descriptors
...
Dynamic USB descriptors
2021-05-06 13:51:38 -04:00
Lucian Copeland
f38f5dbce6
Set reload reason when reloaded from repl
2021-05-05 17:02:32 -04:00
Lucian Copeland
17ee507f09
Remove overwrite of run_reason in main
...
When `reload_requested` is detected, the run reason will no longer be
automatically overwritten as an AUTO_RELOAD, making SUPERVISOR_RELOAD a
detectable reload reason. Autoreload now sets the reload reason itself.
2021-05-04 17:04:24 -04:00
Dan Halbert
abfb020d41
MSC, CDC, HID keyboard definitely working
2021-04-29 17:41:43 -04:00
Dan Halbert
f06d54524d
merge from adafruit
2021-04-28 23:48:26 -04:00
Lucian Copeland
9feef41c82
Merge remote-tracking branch 'upstream/main' into stm-alarm
2021-04-28 15:10:55 -04:00
Dan Halbert
587aedd14f
rework storage allocation
2021-04-28 13:00:44 -04:00
Dan Halbert
d4d96bb25f
Merge pull request #4236 from jun2sak/nrf52-sleep
...
sleep and wakeup for nrf52
2021-04-28 12:11:31 -04:00
Dan Halbert
8500e846c6
partially working
2021-04-27 23:53:23 -04:00
Dan Halbert
f98a54628b
wip: compiles
2021-04-27 14:37:36 -04:00
Dan Halbert
c26e49c2e6
wip: starting to try to compile
2021-04-25 23:17:41 -04:00
Dan Halbert
9d1fcc3b14
merge from main
2021-04-25 10:27:52 -04:00
jun2sak
7accb8b173
modify copyright notice.
2021-04-25 19:57:21 +09:00