Commit Graph

27326 Commits

Author SHA1 Message Date
Max Holliday
397b2f6bb5 pin alarm configures pins again before deep sleep 2021-10-21 10:03:46 -07:00
Max Holliday
e74a8e38fe
Merge branch 'adafruit:main' into samd-sleep 2021-10-21 09:52:55 -07:00
Damien George
f4c1389fbc github/workflows: Use Python 3.8 for macos workflow.
Otherwise it gets a more recent version which fails some of the test suite.

Signed-off-by: Damien George <damien@micropython.org>
2021-10-21 16:03:40 +11:00
Mike Wadsten
c3c2c37fbc tests/basics: Add tests for type-checking subclassed exc instances. 2021-10-21 12:42:48 +11:00
Mike Wadsten
fe2bc92b4d py/runtime: Fix crash when exc __new__ doesn't return an exc instance.
See CPython bug https://bugs.python.org/issue39091 for more details.
2021-10-21 12:32:16 +11:00
Scott Shawcroft
cf4597c6db
Merge pull request #5484 from dhalbert/samd21-pdmin-fix
fix SAMD21 PDMIn DMA event use
2021-10-20 09:47:13 -07:00
Scott Shawcroft
a7a6b347c2
Merge pull request #5483 from jepler/samd51-watchdog
samd51: implement, enable watchdog
2021-10-20 09:45:00 -07:00
Dan Halbert
ec7e88b369
Merge pull request #5487 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-10-20 09:39:02 -04:00
Damien George
30268c93dc stm32/pendsv: Allow a board to add entries for pendsv_schedule_dispatch.
Signed-off-by: Damien George <damien@micropython.org>
2021-10-20 21:20:18 +11:00
Damien George
69522822de stm32/mpbthciport: Allow a board to hook BT HCI poll functions.
Signed-off-by: Damien George <damien@micropython.org>
2021-10-20 21:20:18 +11:00
Damien George
5f2f9044ff stm32/usbd_cdc_interface: Allow a board to hook into USBD CDC RX events.
Signed-off-by: Damien George <damien@micropython.org>
2021-10-20 21:20:18 +11:00
Jonny Bergdahl
95e4902468
Translated using Weblate (Swedish)
Currently translated at 100.0% (1008 of 1008 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-10-20 09:36:08 +02:00
Wellington Terumi Uemura
2f22498263
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1008 of 1008 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-10-20 09:36:08 +02:00
Dan Halbert
28a58c3063
Merge pull request #5486 from dhalbert/keypad-event-hash
fix hash() for Event
2021-10-19 20:31:26 -04:00
Dan Halbert
9091913074 fix hash() for Event 2021-10-19 19:04:10 -04:00
Dan Halbert
fc440e7609 move sercom_reset() etc. out of busio/SPI.c to busio/__init__.c 2021-10-19 15:18:32 -04:00
Jeff Epler
39795430a4
Apply suggestions from code review
Eliminates the "pet" function

Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-10-19 13:25:28 -05:00
Dan Halbert
79ee78e690 fix SAMD21 PDMIn DMA event use 2021-10-19 13:18:14 -04:00
Scott Shawcroft
9220e482ff
Merge pull request #5482 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-10-19 09:55:04 -07:00
Jeff Epler
d38cf05e59 samd51: Add watchdog timer 2021-10-19 10:52:14 -05:00
Jeff Epler
74457d81f2 str_modulo_format: Make error better match standard python
Before this, "%c" % 3.14 would raise the error `integer required`
even though python3 uses `%c requires int or char`, just like both
already did for "%c" % "ab".

This gets rid of a string to translate, and makes behavior match
python3 better.
2021-10-19 10:52:14 -05:00
Andrew Leech
cc42b7c88b unix/modusocket: Support MP_STREAM_POLL in unix socket_ioctl.
Allows asyncio reading of network sockets when MICROPY_PY_USELECT is used
in the build configuration.
2021-10-19 22:48:10 +11:00
Andrew Leech
2ceeabf180 extmod/vfs_posix_file: Support MP_STREAM_POLL in vfs_posix_file_ioctl.
Allows asyncio reading of sys.stdin when MICROPY_PY_USELECT is used in the
build configuration.
2021-10-19 22:47:18 +11:00
Hosted Weblate
0658e31645
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-10-19 00:56:41 +02:00
Hosted Weblate
fdb0522c3c
Merge remote-tracking branch 'origin/main' 2021-10-19 00:56:38 +02:00
Jonny Bergdahl
a3050d1f1e
Translated using Weblate (Swedish)
Currently translated at 100.0% (1007 of 1007 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-10-19 00:56:38 +02:00
Scott Shawcroft
dc4e5cb33b
Merge pull request #5481 from dhalbert/hid-boot-protocol
HID Boot device support; HID feature report support
2021-10-18 15:56:30 -07:00
Scott Shawcroft
2e0be0b5b4
Merge pull request #5478 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-10-18 15:21:50 -07:00
Dan Halbert
11c8080577 touch up doc 2021-10-18 16:26:12 -04:00
Dan Halbert
fa96ea1f72 Merge remote-tracking branch 'adafruit/main' into hid-boot-protocol 2021-10-18 15:30:24 -04:00
Hosted Weblate
f44fec8282
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-10-18 14:14:04 +02:00
Dan Halbert
00aeb6b9d0
Merge pull request #5468 from jepler/encoder-divisor
rotaryio: Add the ability to set the divisor
2021-10-18 08:13:56 -04:00
microDev
6a5a88e478
Merge pull request #5474 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-10-17 22:34:43 +05:30
Jonny Bergdahl
a4ff69becf
Translated using Weblate (Swedish)
Currently translated at 100.0% (1006 of 1006 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-10-17 16:36:50 +02:00
Wellington Terumi Uemura
207db45028
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1006 of 1006 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-10-17 16:36:49 +02:00
Jeff Epler
2736b46f81
Merge pull request #5472 from fraziern/fraziern-docs-readme
Update README in docs/
2021-10-16 17:22:06 -05:00
Nick Frazier
645d513d27 Update README in docs/
Update README in docs/ to reflect changes in package requirements
2021-10-16 17:46:28 -04:00
Jeff Epler
4692b5a95b
Merge pull request #5471 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-10-16 15:34:45 -05:00
Jeff Epler
9eebb3dbab rotaryio: Add the ability to set the divisor
At present, Adafruit's rotary encoders all move 1 quadrature cycle per
detent, so we originally hard-coded division-by-4.  However, other
encoders exist, including ones without detents, ones with 2 detents per
cycle, and others with 4 detents per cycle.

The new `divisor` property and constructor argument allows selecting
a divisor of 1, 2, or 4; with the default of 4 giving backward
compatibility.

The property is not supported (yet?) on espressif MCUs; it throws an
error if a value other than 4 is set.
2021-10-16 09:43:45 -05:00
Jeff Epler
a0dd2ccec1 rotaryio: shared_module_softencoder_state_update: no need for BAD state
All we do on a BAD state transition is avoid counting up or down,
but the same is accomplished by using the "0" table value instead.
2021-10-16 09:41:38 -05:00
Hosted Weblate
ab7f8a7661
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-10-16 05:34:46 +02:00
Dan Halbert
23d2c96476
Merge pull request #5466 from jepler/merge-1.17
Merge 1.17
2021-10-15 23:34:31 -04:00
Jeff Epler
3b8af4cf6f fix an errant 'all_args' 2021-10-15 21:13:47 -05:00
Jeff Epler
414c2f9da6 Always use python3
.. similar to https://github.com/micropython/micropython/pull/4448
2021-10-15 15:11:21 -05:00
Jeff Epler
4e7c1a4bd4 Rename make_new's parameter to all_args
.. and fix two straggling modules that weren't updated at all.
Maybe they're not included in any builds?
2021-10-15 13:49:33 -05:00
microDev
23b24278a7
Merge pull request #5465 from melopero/main
Added D17/Battery Pin definition to melopero shake rp2040
2021-10-15 21:47:47 +05:30
Jeff Epler
132107c258 makeversionhdr: Pick out a circuitpython-style tag 2021-10-15 10:40:04 -05:00
Jeff Epler
53c5bde924 core: Enable new performance optimizations
These two optional optimzations take a little codespace but improve
bytecode performance:
 * https://github.com/micropython/micropython/pull/7680
 * https://github.com/micropython/micropython/pull/7688
2021-10-15 10:39:47 -05:00
Leonardo La Rocca
45600b1b99
Update ports/raspberrypi/boards/melopero_shake_rp2040/pins.c
Co-authored-by: microDev <70126934+microDev1@users.noreply.github.com>
2021-10-15 16:52:25 +02:00
Jeff Epler
7ea1919c05 fix name of windows mpy-cross executable
.. since 1.17, the main part of the build system takes care of adding
the ".exe" extension.
2021-10-15 08:53:58 -05:00