Commit Graph

24451 Commits

Author SHA1 Message Date
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
e7c5165ff6
Merge pull request #4994 from bobthechemist/atmel-samd-analogio-deinit
added pin object to analogout
2021-07-13 18:13:11 -07:00
Lucian Copeland
c504a85ecc Add shared bindings check for invalid frequency 2021-07-13 18:22:43 -04:00
Lucian Copeland
bd39641f7e Fix PWM timer leak and varfreq conflicts 2021-07-13 18:05:47 -04:00
Scott Shawcroft
6188301ccf
Merge pull request #3941 from AdamCummick/add_uart_subclassing
Add UART subclassing
2021-07-13 12:19:08 -07:00
Scott Shawcroft
1a4061ca4a
Merge pull request #4995 from hathach/fix-midi-write-offby1
update tinyusb to fix midi write off by one
2021-07-13 12:17:46 -07:00
Scott Shawcroft
c2685970af
Merge pull request #4987 from DavePutz/issue_4983
Fix for Issue #4983 - stop state machine before restarting
2021-07-13 12:16:33 -07:00
Scott Shawcroft
c6669e2241
Merge pull request #4993 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-07-13 12:16:01 -07:00
root
5c9823d8cb Change order of operations in restart 2021-07-13 11:17:03 -05:00
hathach
ae48c3d2db update tinyusb to fix midi write off by one 2021-07-13 21:45:42 +07:00
microDev
916bd92b0c
update native_uart implementation 2021-07-13 08:56:18 +05:30
microDev
fc975d6147
Merge branch 'adafruit:main' into add_uart_subclassing 2021-07-13 08:53:37 +05:30
BoB LeSuer
35030fbb30 added pin object to analogout 2021-07-12 20:33:42 -04:00
Hosted Weblate
0da3a5de3d
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-07-13 01:38:04 +02:00
Scott Shawcroft
9fdecacec7
Merge pull request #4903 from jepler/split-type-objects
Split type objects
2021-07-12 16:37:55 -07:00
Scott Shawcroft
4b371a8182
Merge pull request #4991 from kattni/rainbowio
Rename rainbow to rainbowio
2021-07-12 13:14:14 -07:00
Scott Shawcroft
9034867967
Merge pull request #4980 from pewpew-game/pewpew-fixx
pewpew10 - use _pew.get_ticks() for time tracking
2021-07-12 13:11:55 -07:00
root
490f263a41 Added code to reset SM program counter during a restart 2021-07-12 14:09:11 -05:00
Kattni Rembor
4579bf9b12 Rename rainbow to rainbowio 2021-07-12 14:40:01 -04:00
Jeff Epler
6d0ed1a898 update ulab 2021-07-12 08:48:47 -05: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
Jeff Epler
75e995f372 Rename mp_type_protocol -> mp_type_get_protocol_slot 2021-07-12 07:04:04 -05:00
Jeff Epler
1b2da0cda3 Rename mp_type_getbuffer -> mp_type_get_getbuffer_slot 2021-07-12 07:04:02 -05:00
Jeff Epler
cdd879a3cc Rename mp_type_iternext -> mp_type_get_iternext_slot 2021-07-12 07:03:59 -05:00
Jeff Epler
9f6132b2ba Rename mp_type_getiter -> mp_type_get_getiter_slot 2021-07-12 07:03:57 -05:00
Jeff Epler
0efdf4a549 Rename mp_type_subscr -> mp_type_get_subscr_slot 2021-07-12 07:03:55 -05:00
Jeff Epler
6b8190b408 Rename mp_type_binary_op -> mp_type_get_binary_op_slot 2021-07-12 07:03:52 -05:00
Jeff Epler
46b5ed33ed Rename mp_type_unary_op -> mp_type_get_unary_op_slot 2021-07-12 07:03:50 -05:00
Jeff Epler
ec53a674cf Rename mp_type_call -> mp_type_get_call_slot 2021-07-12 07:03:25 -05:00
Jeff Epler
9c1434014c remove redundant docs of struct _mp_obj_full_type_t 2021-07-12 07:01:14 -05:00
Jeff Epler
52540a9830 Rename EXTENDED_FIELDS -> MP_TYPE_EXTENDED_FIELDS 2021-07-12 06:57:59 -05:00
root
9d5fbea7a3 Fix for Issue #4983 - stop state machine before restarting 2021-07-11 21:02:28 -05:00
Jeff Epler
0c6dc6f0a4
Merge pull request #4936 from jepler/supervisor-ticks
supervisor: Add a function to get "wrapping" milliseconds
2021-07-11 19:54:32 -05:00
root
0ea750b2d0 Fix handling of short pulses 2021-07-11 16:38:24 -05:00
Jeff Epler
1600f11545 Merge remote-tracking branch 'origin/main' into supervisor-ticks 2021-07-11 15:12:55 -05:00
Jeff Epler
22e8a50585
Merge pull request #4978 from jepler/dictionary-better-heuristic
makeqstrdata: use an extremely accurate dictionary heuristic
2021-07-11 12:49:03 -05:00
Jeff Epler
0b8b16f6ac increase comment on accuracy of the net savings estimate function
Thanks to tyomitch for suggesting the comment could be more accurate.
2021-07-11 08:57:27 -05:00
Jeff Epler
7bee37e9c7
Merge pull request #4981 from DavePutz/issue_4939
Add LED and GP25 for Cytron Maker Pi Pico
2021-07-10 20:04:40 -05:00
Jeff Epler
fd4a7fce91 add tool to parse out firmware sizes for comparison 2021-07-10 19:11:47 -05:00
DavePutz
25e799e51a
Add LED and GP25 for Cytron Maker Pi Pico 2021-07-09 20:49:59 -05:00
Radomir Dopieralski
b2aa17a553 pewpew10 - use _pew.get_ticks() for time tracking
Somehow PR https://github.com/adafruit/circuitpython/pull/4200 got
reverted, repeating it, with a proper tag.
2021-07-10 01:50:43 +02:00
Jeff Epler
7302bc09a7 rename the type flag to EXTENDED for consistency 2021-07-09 14:59:37 -05:00
Jeff Epler
52e75c645d makeqstrdata: Don't include strings that are a net loss! 2021-07-09 14:26:43 -05:00
Jeff Epler
8836198ff1 TextSplitter: don't mutate 'words'
I was puzzled by why the dictionary words were sorted by length.
It was because TextSplitter sorted its parameter, instead of a copy.

This doesn't affect encoding size, but does affect the encoding NUMBER
of the found words.  We'll deliberately restore sorting by length next,
for other reasons, but not by spooky action.
2021-07-09 14:02:31 -05:00
Scott Shawcroft
58fdf9e940
Merge pull request #4975 from DavePutz/issue_4945
Issue #4945 - handle multiple PulseIns
2021-07-09 11:03:16 -07:00
Scott Shawcroft
0e88b77b3e
Merge pull request #4977 from pewpew-game/samd21-filesystem-size
Allow changing size of the filesystem on samd21 per board
2021-07-09 11:00:13 -07:00
Jeff Epler
99abd03b7a makeqstrdata: use an extremely accurate dictionary heuristic
Try to accurately measure the costs of including a word in the dictionary
vs the gains from using it in messages.

This saves about 160 bytes on trinket_m0 ja, the fullest translation
for that board.  Other translations on the same board all have savings,
ranging from 24 to 228 bytes.

```
Translation     Before  After   Savings
ja              1164    1324    160
de_DE           1260    1396    136
fr              1424    1652    228
zh_Latn_pinyin  1448    1520    72
pt_BR           1584    1736    152
pl              1592    1640    48
es              1724    1816    92
ko              1724    1816    92
fil             1764    1800    36
it_IT           1896    2040    144
nl              1956    2136    180
ID              2072    2180    108
cs              2124    2148    24
sv              2340    2448    108
en_x_pirate     2644    2740    96
en_GB           2652    2752    100
el              2656    2768    112
en_US           2656    2768    112
hi              2656    2768    112
```
2021-07-09 12:45:49 -05:00
Dan Halbert
7c2fd270a2
Merge pull request #4976 from kattni/rainbow
Adding rainbow module.
2021-07-08 21:56:38 -04:00
Jeff Epler
3191357807 Merge remote-tracking branch 'origin/main' into refine-stubs 2021-07-08 19:05:26 -05:00