Commit Graph

27350 Commits

Author SHA1 Message Date
Clay
d6665e2a59
Translated using Weblate (Russian)
Currently translated at 35.8% (369 of 1028 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2021-12-04 13:51:53 +01:00
Radomir Dopieralski
840e8b40f3 Update Stage to 1.2.3 to work around display backlight problems
Works around #5476
2021-12-04 10:25:05 +01:00
Dan Halbert
80abd2d645 Use a longer clock stretching timeout for RP2040 zero-byte I2C writes 2021-12-03 18:19:13 -05:00
Jeff Epler
23e0a25aa2 add nopsram version of the devkit C 2021-12-03 15:20:11 -06:00
Jeff Epler
659babc620 Add the esp32s3 devkitc (psram variant) 2021-12-03 15:09:59 -06:00
Dan Halbert
f594ab2e67
Merge pull request #5615 from microDev1/espressif
Update espressif port
2021-12-03 14:55:05 -05:00
Kattni
553d2253b0
Merge pull request #5652 from kattni/kb2040-pin-reorder
Update pin order to match silk.
2021-12-03 12:24:09 -05:00
Kattni Rembor
3b6011d551 Update pin order to match silk. 2021-12-03 11:40:40 -05:00
microDev
9e286432d2
add esp32s3 documentation in readme 2021-12-03 21:20:55 +05:30
IhorNehrutsa
b491967bbd esp32/machine_pwm: Implement duty_u16() and duty_ns() PWM methods.
The methods duty_u16() and duty_ns() are implemented to match the existing
docs.  The duty will remain the same when the frequency is changed.
Standard ESP32 as well as S2, S3 and C3 are supported.

Thanks to @kdschlosser for the fix for rounding in resolution calculation.

Documentation is updated and examples expanded for esp32, including the
quickref and tutorial.  Additional notes are added to the machine.PWM docs
regarding limitations of hardware PWM.
2021-12-03 23:58:52 +11:00
Scott Shawcroft
543e4d8c4d
Merge pull request #5648 from tannewt/rpi_pin_mux
Add full pin mux info and use it for I2C
2021-12-02 10:46:46 -08:00
Scott Shawcroft
8adb0ecd33
Fix loop bounds 2021-12-02 10:28:26 -08:00
ZodiusInfuser
0e56c5aa8a Added definitions for 2MB Tiny2040 2021-12-02 16:45:43 +00:00
Jeff Epler
5797b68153
Merge pull request #5649 from microDev1/traceback
Run test for traceback module
2021-12-02 08:51:53 -06:00
Jeff Epler
3908d4b2c6
Merge pull request #5647 from jepler/issue5493
UART: Don't allocate the object so early
2021-12-02 08:40:52 -06:00
microDev
69faaa52b8
run test for traceback module 2021-12-02 14:55:02 +05:30
Jeff Epler
f94d3e86cf
UART: Don't allocate the object so early
This object has a finalizer, so once it's no longer referenced, GC can
call that finalizer and then deallocate the storage.

In the case of a failure during construction (e.g., when checking
`validate_obj_is_free_pin_or_none`) this will happen on an incompletely
initialized structure.  On samd, in particular, a newly allocated object
(with construct never called) appears to be valid, so GC collecting it
causes deinit() to do things, leading to a hard fault.

The double creation of the UART object was necessary specifically so that
the second allocation would fail.  Probably there were other (single
call) ways to make it fail, but this was the easiest / the one discovered
in real life.

Closes: #5493
2021-12-01 20:54:39 -06:00
Scott Shawcroft
2433c9572c
Add full pin mux info and use it for I2C
All I2C peripherals should be usable now. This also adds pin
in-use tracking and resetting.

Part of #5629
2021-12-01 17:19:57 -08:00
Scott Shawcroft
b83e09858f
Merge pull request #5636 from dhalbert/fix-circuitpython-org-pr
Fix ci_fetch_deps.py for website PR generation
2021-12-01 10:10:09 -08:00
Scott Shawcroft
8cf269d2a0
Merge pull request #5634 from dhalbert/board_deinit
board_deinit() everywhere
2021-12-01 10:09:14 -08:00
Scott Shawcroft
fea0103ff2
Merge pull request #5638 from jepler/test-aesio
Test aesio
2021-12-01 10:05:37 -08:00
Scott Shawcroft
39cc38e008
Merge pull request #5641 from jepler/bitbangio-spi-write-slice
bitbangio.SPI: Handle kwargs like busio.SPI
2021-12-01 09:56:04 -08:00
Scott Shawcroft
932e6992b4
Merge pull request #5642 from jepler/update-ulab
Update ulab to 3.3.7
2021-12-01 09:55:23 -08:00
Jim Mussared
a7fa18c203 py/builtinimport: Refactor module importing.
Simplify and document/comment the handling of builtin import for:
- already-loaded modules
- built-in modules
- built-in umodules (formerly weak links)
- filesystem modules

Retains existing functionality with smaller code size but should also
facilitate potential new features (built-in packages, controlling the
frozen path).

Also makes the (unix-only) -m behavior a bit more obvious and configurable.

Code size change with this commit:

   bare-arm:    +0 +0.000%
minimal x86:   -64 -0.039%
   unix x64:   -32 -0.006%
unix nanbox:    -4 -0.001%
      stm32:  -184 -0.047% PYBV10
     cc3200:  -120 -0.065%
    esp8266:  -228 -0.033% GENERIC
      esp32:  -268 -0.018% GENERIC[incl +16(data)]
        nrf:  -152 -0.087% pca10040
        rp2:  -256 -0.052% PICO
       samd:   -80 -0.057% ADAFRUIT_ITSYBITSY_M4_EXPRESS
2021-12-01 13:23:34 +11:00
Jeff Epler
1b87d2bc39
Update ulab to 3.3.7
Closes: #5609
2021-11-30 19:56:26 -06:00
Jonathan Hogg
851ecb2da1 extmod/modbluetooth: Support gap_connect(None) to cancel a connection.
Allow cancellation of in-progress peripheral connections.
2021-12-01 11:56:37 +11:00
Dan Halbert
e8ea9c75a1 check for missing pins; deinit txrx leds 2021-11-30 19:16:21 -05:00
Jeff Epler
9ee46bb462
bitbangio.SPI: Handle kwargs like busio.SPI
untested
2021-11-30 17:22:13 -06:00
Jeff Epler
1654f5fb58
add an aes test
This combines some test vectors from the implementation & a NIST
standards document, plus the code from the docstring.

The test vectors were eyeball-verified.
2021-11-30 15:26:32 -06:00
Jeff Epler
62895b2636
aesio: fix docs 2021-11-30 15:25:42 -06:00
Jeff Epler
1f1def54b7
add aesio to unix coverage build 2021-11-30 15:25:05 -06:00
Dan Halbert
26f23e44c4 don't fetch submodules for circuitpython.org update 2021-11-30 15:49:20 -05:00
Dan Halbert
4ea090b9a2
Merge pull request #5635 from kamtom480/spresense_time_time_fix
spresense: Fix time.time()
2021-11-30 11:50:37 -05:00
Dan Halbert
57c33059f3 board_deinit() everywhere 2021-11-30 11:00:10 -05:00
Kamil Tomaszewski
9a8d8b1bf1 spresense: Fix time.time() 2021-11-30 12:38:48 +01:00
Scott Armitage
de7e3cd792 docs/library/machine.Pin.rst: Add Pin.ANALOG mode constant. 2021-11-30 22:33:18 +11:00
Michael Buesch
68d1245f42 docs/library/machine.Timer.rst: Document period and callback args.
Signed-off-by: Michael Buesch <m@bues.ch>
2021-11-30 22:29:03 +11:00
Michael Buesch
1e7c8f2b0b docs/library/machine.SPI.rst: Add example SPI usage.
Signed-off-by: Michael Buesch <m@bues.ch>
2021-11-30 22:28:19 +11:00
Michael Buesch
e7900351bf docs/library/machine.Timer.rst: Document 'id' as positional-only arg.
Signed-off-by: Michael Buesch <m@bues.ch>
2021-11-30 22:27:58 +11:00
Peter Hinch
d94ac4333f docs/library/uasyncio.rst: Detail exception behaviour in cancel/timeout. 2021-11-30 21:43:06 +11:00
Dan Halbert
8d6957b792
Merge pull request #5627 from tannewt/shallow_rpi_firmware
Add `make fetch-submodules` to update submodules
2021-11-30 00:13:51 -05:00
Scott Shawcroft
d64886e117
Track upstream ulab 2021-11-29 16:38:59 -08:00
Scott Shawcroft
2592fcbab2
Ignore failure of first command. It's deliberate 2021-11-29 16:25:15 -08:00
Scott Shawcroft
0a27f7c3ab
Add make fetch-submodules to update submodules
This also sets rpi-firmware as shallow in case submodules are
updated manually.

Fixes #5619
2021-11-29 16:19:22 -08:00
Dan Halbert
f8493db217
Merge pull request #5626 from kattni/feather-esp32-s2-pin-reorder
Update pins to silk pin first.
2021-11-29 18:42:36 -05:00
Damien George
23a150789d stm32/boards/make-pins.py: Use cpu pins to define static alt-fun macros.
Instead of board pins, so that pins which have only the CPU specified in
pins.csv can still be used with mp_hal_pin_config_alt_static().

Signed-off-by: Damien George <damien@micropython.org>
2021-11-30 10:25:41 +11:00
Scott Shawcroft
84d0e88cf6
Merge pull request #5624 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-11-29 15:21:43 -08:00
Damien George
0c9f5b388e stm32: Include HAL MMC code in F4 builds.
So that the MMC driver can be used on F4 MCUs.

Signed-off-by: Damien George <damien@micropython.org>
2021-11-30 10:21:18 +11:00
Damien George
7e61a12eb1 stm32: Add support for F479 MCUs.
Signed-off-by: Damien George <damien@micropython.org>
2021-11-30 10:21:18 +11:00
Kattni Rembor
c13f1d19f5 Update pins to silk pin first. 2021-11-29 17:56:03 -05:00