microDev
7316c742cf
make `next_code_allocation` and `prev_traceback_allocation` movable
2021-09-12 18:06:03 +05:30
Kamil Tomaszewski
ff807f8f19
Fix incorrect use of allocate_memory()
2021-09-04 11:17:39 +02:00
Rob Capellini
1c8828223f
Convert more modules to use MP_REGISTER_MODULE
...
Convert neopixel_write, onewireio, ps2io, pulseio, pwmio, rainbowio, random, rgbmatrix, rotaryio, rtc, sdcardio, sharpdisplay, _stage, storage, struct, supervisor, synthio, touchio, traceback, usb_cdc, usb_hid, usb_midi, and vectorio modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-08-30 22:29:51 -04:00
Scott Shawcroft
713c8e7b3f
Fix builds without the ble workflow
2021-08-03 14:36:41 -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
0bdff4fd5f
Remove addressed TODO comments
2021-07-23 21:00:00 +02:00
Lucian Copeland
ace04ef600
Formatting fixes
2021-07-22 12:57:10 -04:00
Christian Walther
cf97793af8
Add supervisor.get_previous_traceback() function.
...
Useful for #1084 .
2021-07-22 12:23:55 -04:00
Jeff Epler
78b20441c1
supervisor: Add a function to get "wrapping" milliseconds
...
As discussed in #3410 , this is a micropython-compatible (though
differently named) function that allows creation of useful time
and deadline functions in pure python.
2021-06-27 20:41:39 -05:00
Lucian Copeland
cf9741bd3a
Merge remote-tracking branch 'upstream/main' into setnextcode
2021-06-20 15:25:37 -04: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
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
Christian Walther
8889ac12e1
Add supervisor.set_next_code() function (prototype).
...
Part of #1084 .
2021-01-23 23:05:31 +01:00
Dan Halbert
9391c8f9dd
Make ResetReason and RunReason available
2020-12-06 12:00:00 -05:00
Dan Halbert
ef0830bfe2
merge from upstream + wip
2020-11-25 17:52:06 -05:00
Dan Halbert
f868cc5dd0
some API renaming and bug fixes; fix docs
2020-11-24 23:37:05 -05:00
Dan Halbert
7a45afc549
working, but need to avoid deep sleeping too fast before USB ready
2020-11-23 22:44:53 -05:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
Taku Fukada
56c898da80
Modify some Python stubs
2020-08-07 01:01:28 +09:00
Taku Fukada
d356581651
Fix several type hints
2020-07-27 18:05:13 +09:00
Scott Shawcroft
4e8de3c554
Swap sphinx to autoapi and the inline stubs
2020-05-12 17:28:24 -07:00
dherrada
991045b9ce
Did struct, supervisor, terminalio
2020-05-12 11:28:33 -04:00
Scott Shawcroft
933add6cd8
Support internationalisation.
2018-08-07 14:58:57 -07:00
Scott Shawcroft
a88cdaca6a
Remove rogue execute bit. Must a common incorrect shortcut for me. :-)
2018-07-31 12:42:21 -07:00
Scott Shawcroft
12cf5e51c2
Allow for resizing the stack area.
2018-07-31 05:18:23 -07:00
Scott Shawcroft
777542c716
Add basic memory allocation outside Python runtime
...
This allows for the heap to fill all space but the stack. It also
allows us to designate space for memory outside the runtime for
things such as USB descriptors, flash cache and main filename.
Fixes #754
2018-07-31 05:18:03 -07:00
Scott Shawcroft
918d30cb97
Rephrase the doc
2018-05-16 16:28:43 -05:00
Roy Hooper
92b1cb5743
move reload exception to reload.c
2018-05-14 17:41:17 -04:00
Roy Hooper
698912633f
Rename reload_next_character to reload_requested to make it match it's intended use
2018-05-14 17:00:38 -04:00
Roy Hooper
567f3e30a7
Initial implementation of supervisor.reload()
2018-05-14 16:57:50 -04:00
sommersoft
d1974e0038
supervisor/Runtime: updated documentation for 'no disconnect'
2018-04-06 01:56:51 +00:00
sommersoft
01471e1e22
sphinx fix; added toctree to include 'runtime'
2018-03-09 03:22:00 +00:00
sommersoft
c1c3a79ec4
atmel-samd: changed Status to Runtime; instituted runtime singleton
2018-03-09 02:19:51 +00:00
sommersoft
fca9c66c27
added Status submodule to shared-bindings/supervisor; issue #544
2018-02-19 20:40:17 +00:00
Scott Shawcroft
ecc47d5258
Create supervisor module.
...
It can control autoreload and the rgb status led.
2017-11-16 09:04:17 -08:00