microDev
5425454341
Merge pull request #5208 from jepler/small-memory-savings
...
Small memory savings
2021-08-26 09:22:14 +05:30
Rob Capellini
ad103ac6f1
Convert more modules to use MP_REGISTER_MODULE
...
Convert adafruit_bus_device, adafruit_pixelbuf, analogio, atexit, audiobusio, audiocore, audioio, audiomixer, and audiomp3 modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-08-25 20:48:55 -04:00
Rob Capellini
deb8e2a50a
Remove comment that no longer applies
2021-08-24 20:55:39 -04:00
Rob Capellini
17af5cd492
Use MP_REGISTER_MODULE with displayio, terminalio, and fontio
...
Convert from using MICROPY_PORT_BUILTIN_MODULES_STRONG_LINKS to using MP_REGISTER_MODULE for displayio, terminalio, and fontio modules.
Related to #5183 .
2021-08-24 20:07:10 -04:00
Jeff Epler
6d26225b60
objgenerator: Unify two messages
2021-08-23 20:27:20 -05:00
Jeff Epler
c310a618e8
objtraceback: merge with an existing message in objtype
2021-08-23 20:23:23 -05:00
microDev
57b4d0176f
Merge pull request #5077 from microDev1/atexit
...
Add atexit module
2021-08-23 19:49:46 +05:30
Dan Halbert
57841dc92b
Merge pull request #5171 from tannewt/unicode_filenames
...
Turn on unicode for FATFS
2021-08-21 16:31:54 -04:00
microDev
25437dcb33
Merge branch 'main' into atexit
2021-08-20 09:45:54 +05:30
microDev
dd5b711dc7
Merge pull request #5166 from jepler/issue5154
...
Don't double-list modules that MP_REGISTER_MODULE
2021-08-20 09:25:03 +05:30
Scott Shawcroft
5c6e80a2bb
Shrink builds by defining advanced micropython API
...
Also, ignore more pins on SAMD boards and disable EXFAT on others.
2021-08-19 16:49:33 -07:00
Jeff Epler
f1bbf406c4
remove a straggling QRIO_MODULE mention
2021-08-19 14:01:14 -05:00
Scott Shawcroft
e0ce5ff045
Fix some builds by disabling exfat
2021-08-18 08:22:29 -07:00
Scott Shawcroft
11f1c42bb5
Turn on unicode for FATFS
...
This also tweaks the repr for unicode strings to only escape a few
utf-8 code points. This makes emoji show in os.listdir() for
example.
Also, enable exfat support on full builds.
Fixes #5146
2021-08-17 17:41:59 -07:00
Dan Halbert
5b0009cbc4
Merge pull request #5151 from dhalbert/usb_hid-changes
...
Support multiple reports per device in usb_hid
2021-08-17 17:14:28 -04:00
microDev
6c763762d4
restore sys.atexit() to prevent merge conflict
2021-08-17 10:13:01 +05:30
Scott Shawcroft
58b3b48939
Merge pull request #5157 from DavePutz/issue_5155
...
Make MICROPY_CPYTHON_COMPAT settable
2021-08-16 12:15:35 -07:00
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
Jeff Epler
ccc371ed53
Don't double-list modules that MP_REGISTER_MODULE
...
Closes : #5154
2021-08-16 08:50:57 -05:00
root
6c0e983658
Make MICROPY_CPYTHON_COMPAT settable
2021-08-15 20:49:24 -05:00
microDev
27563936ed
fix crash on raise of reload exception
2021-08-15 11:11:11 +05:30
Dan Halbert
4f8ff12afa
wip
2021-08-14 12:36:40 -04:00
Scott Shawcroft
49dcdef512
Fix copy pasta
2021-08-13 11:32:26 -07:00
Scott Shawcroft
de796e2304
Move OneWire to onewireio
from busio
...
This will allow finer grained inclusion in 8.0.0
Fixes #5135
2021-08-12 10:47:14 -07:00
Scott Shawcroft
fb6b438580
Make getpass
and traceback
full build only
...
This leaves much more space on SAMD21 builds that aren't "full builds".
These are new APIs that we don't need to add to old boards.
Also, tweak two Arduino boards to save space on them.
2021-08-11 14:47:35 -07:00
Scott Shawcroft
0c1d6cef75
Merge remote-tracking branch 'adafruit/main' into fix_cp_irremote
2021-08-11 13:43:59 -07:00
Scott Shawcroft
083960ce90
Fix SAMD51 builds and Prox Trinkey
...
Adds CIRCUITPY_BUSIO_UART to disable UART by raising ValueError
that no pins work.
2021-08-11 11:53:26 -07:00
microDev
93c9d59960
Merge branch 'main' into getpass
2021-08-10 01:00:10 +05:30
Jeff Epler
c1ffab7476
Reduce code duplication in traceback module
2021-08-09 08:27:28 -05:00
Jeff Epler
bfea6947e5
Improve mp_printf with support for compressed strings
...
* The new nonstandard '%S' format takes a pointer to compressed_string_t
and prints it
* The new mp_cprintf and mp_vcprintf take a format string that is a
compressed_string_t
2021-08-09 08:27:28 -05:00
microDev
51f8603783
add getpass module
2021-08-09 17:50:28 +05:30
Jeff Epler
d59a28db97
Compress word offset table
...
By storing "count of words by length", the long `wends` table can be
replaced with a short `wlencount` table. This saves flash storage space.
Extend the range of string lengths that can be in the dictionary.
Originally it was to 2 to 9; at one point it was changed to 3 to 9.
Putting the lower bound back at 2 has a positive impact on the French
translation (a bunch of them, such as "ch", "\r\n", "%q", are used).
Increasing the maximum length gets 'mpossible', ' doit être ',
and 'CircuitPyth' at the long end. This adds a bit of processing time
to makeqstrdata. The specific 2/11 values are again empirical based on
the French translation on the adafruit_proxlight_trinkey_m0.
2021-08-07 09:23:35 -05:00
microDev
063e3946d6
Merge pull request #5094 from jepler/quirc
...
Add qrio: Decode QR codes with quirc lib
2021-08-07 09:30:20 +05:30
Jeff Epler
67551c1ac0
qrio: Split QRInfo & PixelPolicy to their own .c/.h files
2021-08-06 09:53:17 -05:00
Jeff Epler
bd903f2f03
Add qrio: Decode QR codes with quirc lib
2021-08-04 09:16:00 -05:00
microDev
193a8d2e67
add traceback object
2021-08-04 12:10:57 +05:30
microDev
4938851122
remove legacy sys.atexit() implementation
2021-07-30 10:00:00 +05:30
microDev
a3998d0626
add atexit module
2021-07-30 09:32:28 +05:30
microDev
f371c0a609
add traceback module
2021-07-28 18:06:23 +05:30
Dan Halbert
b0fb709d83
more gamepad removal
2021-07-26 23:34:25 -04:00
Dan Halbert
901a6c27c0
remove gamepad; deprecate gamepadshift
2021-07-26 22:15:09 -04:00
microDev
79aaa3cc3a
make pre-commit happy
...
fix formatting
2021-07-23 09:27:54 +05:30
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
Jeff Epler
9a373c4fb9
Merge pull request #4961 from dhalbert/restore-1970-epoch
...
Restore default epoch to 1970
2021-07-19 14:51:08 -05:00
Kattni Rembor
dc2907ac1b
Rename _pixelbuf to adafruit_pixelbuf, alias.
2021-07-16 13:31:40 -04: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
9fdecacec7
Merge pull request #4903 from jepler/split-type-objects
...
Split type objects
2021-07-12 16:37:55 -07:00
Kattni Rembor
4579bf9b12
Rename rainbow to rainbowio
2021-07-12 14:40:01 -04:00
Jeff Epler
93c6d16d3c
Rename mp_type_attr -> mp_type_get_attr_slot
2021-07-12 07:30:29 -05:00
Jeff Epler
88434c53c7
Rename mp_type_parent -> mp_type_get_parent_slot
2021-07-12 07:30:16 -05:00