20068 Commits

Author SHA1 Message Date
Jeff Epler
2fb5eb3b11 extmod/re1.5: Check and report byte overflow errors in _compilecode.
The generated regex code is limited in the range of jumps and counts, and
this commit checks all cases which can overflow given the right kind of
input regex, and returns an error in such a case.

This change assumes that the results that overflow an int8_t do not
overflow a platform int.

Closes: #7078

Signed-off-by: Jeff Epler <jepler@gmail.com>

# Conflicts:
#	extmod/re1.5/compilecode.c
2021-04-06 19:11:40 -05:00
Dan Halbert
82479b6a2c
Merge pull request #4503 from hierophect/sleep-api-update
Sleep API changes and fix for main.c silent issue
2021-04-06 16:53:25 -04:00
Scott Shawcroft
6097afdaa5
Merge pull request #4559 from jepler/rp2-rotary-encoder-fixes
raspberrypi: Several rotary encoder fixes
2021-04-06 10:00:26 -07:00
Scott Shawcroft
e532e6a529
Merge pull request #4565 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-04-06 10:00:12 -07:00
Hosted Weblate
2a5fe57e43 Merge remote-tracking branch 'origin/main' into main 2021-04-06 16:42:21 +02:00
Limor "Ladyada" Fried
e0386a8598
Merge pull request #4566 from adafruit/tannewt-patch-1
Remove colocate doc reference
2021-04-06 10:42:18 -04:00
Hosted Weblate
d133eeedc2 Merge remote-tracking branch 'origin/main' into main 2021-04-06 16:41:27 +02:00
Jonny Bergdahl
30c02df4a5
Translated using Weblate (Swedish)
Currently translated at 100.0% (969 of 969 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-04-06 16:41:27 +02:00
Limor "Ladyada" Fried
354be8cbcc
Merge pull request #4569 from lesamouraipourpre/displayio-doc-fixes
Minor documentation fixes in displayio
2021-04-06 10:41:22 -04:00
Jeff Epler
1a2ce27b73 raspberrypi: Drop support for auto-reversing swapped encoder 2021-04-06 09:22:59 -05:00
James Carr
8958c1e227 Minor documentation fixes in displayio 2021-04-06 10:47:46 +01:00
Scott Shawcroft
71eabe814c
Update StateMachine.c 2021-04-05 16:17:08 -07:00
Hosted Weblate
1c98b823b6
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-04-06 00:35:50 +02:00
Hosted Weblate
27361e1187 Merge remote-tracking branch 'origin/main' into main 2021-04-06 00:35:48 +02:00
Jonny Bergdahl
322174a492
Translated using Weblate (Swedish)
Currently translated at 100.0% (967 of 967 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-04-06 00:35:48 +02:00
Wellington Terumi Uemura
334a1e3ba6
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (967 of 967 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-04-06 00:35:48 +02:00
Jose David M
989f9b52be
Translated using Weblate (Spanish)
Currently translated at 100.0% (967 of 967 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-04-06 00:35:47 +02:00
Lucian Copeland
bf58afdb2a
Merge pull request #4399 from tyomitch/patch-2
[stm] implementation of audiopwmio
7.0.0-alpha.1
2021-04-05 18:35:39 -04:00
Scott Shawcroft
e962b24da1
Merge pull request #4549 from jepler/writable-bitmaps
displayio.Bitmap: Allow modification though the buffer protocol
2021-04-05 14:23:16 -07:00
Dan Halbert
a1562430f6
Merge pull request #4560 from dhalbert/fix-hid-order
Put mouse before gamepad due to MacOS being finicky
2021-04-04 23:11:14 -04:00
Dan Halbert
0357af1726 Put mouse before gamepad due to MacOS being finicky 2021-04-04 21:48:54 -04:00
Jeff Epler
fc86475de5 IncrementalEncoder: support swapped pins
Closes: #4422
2021-04-04 13:49:50 -05:00
Jeff Epler
93d6ceedd9 IncrementalEncoder: Disconnect interrupt handler during deinit.
Closes: #4557
2021-04-04 13:49:41 -05:00
Jeff Epler
bcd90dd927 IncrementalEncoder: There are no out pins.
Closes #4556
2021-04-04 13:49:21 -05:00
Dan Halbert
ae80378c4e
Merge pull request #4545 from ElectronicCats/huntercat_nfc
HunterCat NFC
2021-04-04 14:21:49 -04:00
Dan Halbert
57e70adc69
Merge pull request #4553 from jepler/decompress-length-fix
decompress: Fix decompression when length takes 7 bits
2021-04-04 14:21:09 -04:00
Jeff Epler
234fa2a226 decompress: Fix decompression when length takes 7 bits
This manifested as incorrect error messages from mpy-cross, like
```
$ mpy-cross doesnotexist.py
OSError: [Errno 2] cno such file/director
```

The remaining bits in `b` must be shifted to the correct position before
entering the loop.

For most (all?) actual builds, compress_max_length_bits was 8 and the
problem went unnoticed.
2021-04-04 11:15:33 -05:00
sabas1080
8b6ffba392 Update comment 2021-04-04 11:10:32 -05:00
Jeff Epler
27d8832868
Merge pull request #4512 from m-byte/main
Add Artisense RD00 board files
2021-04-03 18:40:59 -05:00
Jeff Epler
d04eab530e
Merge pull request #4550 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-04-03 18:36:25 -05:00
Hosted Weblate
cc44554165 Merge remote-tracking branch 'origin/main' into main 2021-04-03 23:57:56 +02:00
Jeff Epler
a9b42a0e27
Merge pull request #4548 from tyomitch/patch-1
[repl] Autocomplete builtin modules
2021-04-03 16:57:53 -05:00
Hosted Weblate
ca1467187e
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-04-03 23:57:49 +02:00
Hosted Weblate
61414ea1f8 Merge remote-tracking branch 'origin/main' into main 2021-04-03 23:57:47 +02:00
Jonny Bergdahl
cf51640157
Translated using Weblate (Swedish)
Currently translated at 100.0% (967 of 967 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-04-03 23:57:47 +02:00
Hugo Dahl
3969ce2990
Translated using Weblate (French)
Currently translated at 100.0% (967 of 967 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2021-04-03 23:57:47 +02:00
Jose David M
22e8863a00
Translated using Weblate (Spanish)
Currently translated at 100.0% (967 of 967 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-04-03 23:57:46 +02:00
Jeff Epler
e1e4d21db4
Merge pull request #4547 from jepler/upgrade-ulab-2.6.0
Upgrade ulab 2.6.0
2021-04-03 16:57:41 -05:00
Artyom Skrobov
59fa9b01ad [repl] Autocomplete builtin modules 2021-04-03 16:56:02 -04:00
Artyom Skrobov
1d55dee15b [repl] Refactor autocomplete, extracting reusable parts 2021-04-03 16:54:34 -04:00
Artyom Skrobov
6e17db3286 [repl] Refactor autocomplete to reduce nesting 2021-04-03 15:54:36 -04:00
Jeff Epler
97fd77b3bb make translate 2021-04-03 13:22:28 -05:00
Artyom Skrobov
4ee781227f [meowbit] change board.BUZZ type to PWMAudioOut,
as advised in #4257
2021-04-03 13:35:19 -04:00
Jeff Epler
30e612fd55 ulab: upgrade to 2.6.0 + CP building changes
Changes in ulab: https://github.com/v923z/micropython-ulab/pull/360
2021-04-03 12:23:48 -05:00
Jeff Epler
78089107bc displayio.Bitmap: Allow modification though the buffer protocol
It is required to call .dirty() with appropriate arguments after modifications through the buffer protocol, or the display might not be updated correctly.
2021-04-03 10:41:20 -05:00
Matthias Breithaupt
43ba81ffa1 Add Artisense RD00 board files 2021-04-03 17:20:59 +02:00
Jeff Epler
a78d00a73d
Merge pull request #4544 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-04-03 08:43:14 -05:00
Hosted Weblate
bb19264880
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-04-03 03:09:50 +02:00
Hosted Weblate
54a6bf4f54 Merge remote-tracking branch 'origin/main' into main 2021-04-03 03:09:48 +02:00
Dan Halbert
3af02b692b
Merge pull request #4543 from bergdahl/main
Changed confusing error messages.
2021-04-02 21:09:44 -04:00