Skip to content

Commit f94cc09

Browse files
authored
Merge pull request #1 from adafruit/main
Merge latest CircuitPython changes (6.0.0-rc.1)
2 parents f1e8f2b + 0d0436b commit f94cc09

File tree

136 files changed

+3671
-611
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+3671
-611
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
sudo apt-get install -y eatmydata
3939
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64 latexmk texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
40-
pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black awscli
40+
pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black awscli mypy
4141
- name: Versions
4242
run: |
4343
gcc --version
@@ -67,8 +67,8 @@ jobs:
6767
- name: mpy Tests
6868
run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float
6969
working-directory: tests
70-
- name: Stubs
71-
run: make stubs -j2
70+
- name: Build and Validate Stubs
71+
run: make check-stubs -j2
7272
- uses: actions/upload-artifact@v2
7373
with:
7474
name: stubs
@@ -111,11 +111,13 @@ jobs:
111111
with:
112112
name: mpy-cross.static-x64-windows
113113
path: mpy-cross/mpy-cross.static.exe
114-
- name: Upload mpy-cross builds to S3
114+
- name: Upload stubs and mpy-cross builds to S3
115115
run: |
116116
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static-raspbian s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-raspbian-${{ env.CP_VERSION }} --no-progress --region us-east-1
117117
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-amd64-linux-${{ env.CP_VERSION }} --no-progress --region us-east-1
118118
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static.exe s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-x64-windows-${{ env.CP_VERSION }}.exe --no-progress --region us-east-1
119+
zip -9r circuitpython-stubs.zip circuitpython-stubs
120+
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs.zip s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-${{ env.CP_VERSION }}.zip --no-progress --region us-east-1
119121
env:
120122
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
121123
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -131,7 +133,7 @@ jobs:
131133
run: echo "$GITHUB_CONTEXT"
132134
- name: Install dependencies
133135
run: |
134-
brew install gettext awscli
136+
brew install gettext
135137
echo >>$GITHUB_PATH /usr/local/opt/gettext/bin
136138
- name: Versions
137139
run: |
@@ -170,6 +172,7 @@ jobs:
170172
matrix:
171173
board:
172174
- "8086_commander"
175+
- "ADM_B_NRF52840_1"
173176
- "TG-Watch02A"
174177
- "aloriumtech_evo_m51"
175178
- "aramcon_badge_2019"
@@ -198,6 +201,8 @@ jobs:
198201
- "datum_imu"
199202
- "datum_light"
200203
- "datum_weather"
204+
- "dynossat_edu_eps"
205+
- "dynossat_edu_obc"
201206
- "electronut_labs_blip"
202207
- "electronut_labs_papyr"
203208
- "escornabot_makech"
@@ -416,13 +421,16 @@ jobs:
416421
fail-fast: false
417422
matrix:
418423
board:
424+
- "adafruit_esp32s2_eink_portal"
419425
- "adafruit_metro_esp32s2"
420426
- "electroniccats_bastwifi"
421427
- "espressif_kaluga_1"
422428
- "espressif_saola_1_wroom"
423429
- "espressif_saola_1_wrover"
424430
- "microdev_micro_s2"
425431
- "muselab_nanoesp32_s2"
432+
- "targett_module_clip_wroom"
433+
- "targett_module_clip_wrover"
426434
- "unexpectedmaker_feathers2"
427435
- "unexpectedmaker_feathers2_prerelease"
428436

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
66

77
# Contributing
88
Please note that this project is released with a
9-
[Contributor Code of Conduct](https://github.com/adafruit/circuitpython/blob/main/CODE_OF_CONDUCT.md).
9+
[Contributor Code of Conduct](CODE_OF_CONDUCT.md).
1010
By participating in this project you agree to abide by its terms. Participation
1111
covers any forum used to converse about CircuitPython including unofficial and official spaces. Failure to do
1212
so will result in corrective actions such as time out or ban from the project.

README.rst

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ Differences from `MicroPython <https://github.com/micropython/micropython>`__
9595
CircuitPython:
9696

9797
- Supports native USB on all boards, allowing file editing without special tools.
98-
- Supports only SAMD21, SAMD51, nRF52840, CXD56, STM32F4 and i.MX RT ports.
9998
- Floats (aka decimals) are enabled for all builds.
10099
- Error messages are translated into 10+ languages.
101100
- Does not support concurrency within Python (including interrupts and threading). Some concurrency
@@ -137,8 +136,8 @@ Behavior
137136
API
138137
~~~
139138

140-
- Unified hardware APIs. Documented
141-
`on ReadTheDocs <https://circuitpython.readthedocs.io/en/latest/shared-bindings/index.html>`_.
139+
- Unified hardware APIs. Documented on
140+
`ReadTheDocs <https://circuitpython.readthedocs.io/en/latest/shared-bindings/index.html>`_.
142141
- API docs are rST within the C files in ``shared-bindings``.
143142
- No ``machine`` API.
144143

@@ -201,14 +200,27 @@ Ports
201200
Ports include the code unique to a microcontroller line and also
202201
variations based on the board.
203202

204-
- ``atmel-samd`` Support for SAMD21 and SAMD51 based boards.
205-
- ``nrf`` Support for the nRF52840 based boards.
206-
- ``unix`` Support for UNIX. Only used for automated testing.
203+
================ ============================================================
204+
Supported Support status
205+
================ ============================================================
206+
atmel-samd ``SAMD21`` stable | ``SAMD51`` stable
207+
cxd56 stable
208+
esp32s2 beta
209+
litex alpha
210+
mimxrt10xx alpha
211+
nrf stable
212+
stm ``F4`` stable | ``others`` beta
213+
unix alpha
214+
================ ============================================================
215+
216+
- ``stable`` Highly unlikely to have bugs or missing functionality.
217+
- ``beta`` Being actively improved but may be missing functionality and have bugs.
218+
- ``alpha`` Will have bugs and missing functionality.
207219

208220
The remaining port directories not listed above are in the repo to maintain compatibility with the
209221
`MicroPython <https://github.com/micropython/micropython>`__ parent project.
210222

211-
`back to top <#circuitpython>`__
223+
`Back to Top <#circuitpython>`__
212224

213225
.. |Build Status| image:: https://github.com/adafruit/circuitpython/workflows/Build%20CI/badge.svg
214226
:target: https://github.com/adafruit/circuitpython/actions?query=branch%3Amain

devices/ble_hci/common-hal/_bleio/Adapter.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#include "shared-bindings/_bleio/Address.h"
4646
#include "shared-bindings/_bleio/Characteristic.h"
4747
#include "shared-bindings/_bleio/Service.h"
48-
#include "shared-bindings/nvm/ByteArray.h"
4948
#include "shared-bindings/_bleio/Connection.h"
5049
#include "shared-bindings/_bleio/ScanEntry.h"
5150
#include "shared-bindings/time/__init__.h"

devices/ble_hci/common-hal/_bleio/hci_include/att_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include <stdbool.h>
1313
// for __packed
14-
#include <string.h>
14+
#include <sys/cdefs.h>
1515

1616
#define BT_EATT_PSM 0x27
1717
#define BT_ATT_DEFAULT_LE_MTU 23

devices/ble_hci/common-hal/_bleio/hci_include/hci.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_
1313

1414
#include <stdbool.h>
15-
#include <string.h>
15+
// for __packed
16+
#include <sys/cdefs.h>
17+
1618
#include "addr.h"
1719

20+
// ESP32S2 build environment defines this already.
21+
#ifndef BIT
1822
#define BIT(n) (1UL << (n))
23+
#endif
1924

2025
/* Special own address types for LL privacy (used in adv & scan parameters) */
2126
#define BT_HCI_OWN_ADDR_RPA_OR_PUBLIC 0x02

locale/ID.po

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2020-10-10 23:49-0700\n"
8+
"POT-Creation-Date: 2020-10-21 20:13-0500\n"
99
"PO-Revision-Date: 2020-10-10 23:51+0000\n"
1010
"Last-Translator: oon arfiandwi <[email protected]>\n"
1111
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -292,11 +292,16 @@ msgstr "Alamat harus sepanjang %d byte"
292292
msgid "Address type out of range"
293293
msgstr "Jenis alamat di luar batas"
294294

295+
#: ports/esp32s2/common-hal/canio/CAN.c
296+
msgid "All CAN peripherals are in use"
297+
msgstr ""
298+
295299
#: ports/esp32s2/common-hal/busio/I2C.c ports/nrf/common-hal/busio/I2C.c
296300
msgid "All I2C peripherals are in use"
297301
msgstr "Semua perangkat I2C sedang digunakan"
298302

299303
#: ports/atmel-samd/common-hal/canio/Listener.c
304+
#: ports/esp32s2/common-hal/canio/Listener.c
300305
#: ports/stm/common-hal/canio/Listener.c
301306
msgid "All RX FIFOs in use"
302307
msgstr ""
@@ -413,6 +418,10 @@ msgstr ""
413418
"Auto-reload aktif. Silahkan simpan data-data (files) melalui USB untuk "
414419
"menjalankannya atau masuk ke REPL untukmenonaktifkan.\n"
415420

421+
#: ports/esp32s2/common-hal/canio/CAN.c
422+
msgid "Baudrate not supported by peripheral"
423+
msgstr ""
424+
416425
#: shared-module/displayio/Display.c
417426
#: shared-module/framebufferio/FramebufferDisplay.c
418427
msgid "Below minimum frame rate"
@@ -793,7 +802,7 @@ msgstr "Mode kendara tidak digunakan saat arah input."
793802
msgid "ECB only operates on 16 bytes at a time"
794803
msgstr "ECB hanya beroperasi pada 16 byte di satu waktu"
795804

796-
#: ports/esp32s2/common-hal/busio/SPI.c
805+
#: ports/esp32s2/common-hal/busio/SPI.c ports/esp32s2/common-hal/canio/CAN.c
797806
msgid "ESP-IDF memory allocation failed"
798807
msgstr ""
799808

@@ -919,6 +928,7 @@ msgid "File exists"
919928
msgstr "File sudah ada"
920929

921930
#: ports/atmel-samd/common-hal/canio/Listener.c
931+
#: ports/esp32s2/common-hal/canio/Listener.c
922932
#: ports/stm/common-hal/canio/Listener.c
923933
msgid "Filters too complex"
924934
msgstr ""
@@ -966,6 +976,10 @@ msgstr "Perangkat keras sibuk, coba pin alternatif"
966976
msgid "Hardware in use, try alternative pins"
967977
msgstr "Perangkat keras sedang digunakan, coba pin alternatif"
968978

979+
#: shared-bindings/wifi/Radio.c
980+
msgid "Hostname must be between 1 and 253 characters"
981+
msgstr ""
982+
969983
#: extmod/vfs_posix_file.c py/objstringio.c
970984
msgid "I/O operation on closed file"
971985
msgstr "operasi I/O pada file tertutup"
@@ -1047,6 +1061,7 @@ msgstr "File BMP tidak valid"
10471061
msgid "Invalid BSSID"
10481062
msgstr ""
10491063

1064+
#: ports/esp32s2/common-hal/analogio/AnalogOut.c
10501065
#: ports/stm/common-hal/analogio/AnalogOut.c
10511066
msgid "Invalid DAC pin supplied"
10521067
msgstr "Pin DAC yang diberikan tidak valid"
@@ -1135,7 +1150,7 @@ msgstr "Pin untuk channel kanan tidak valid"
11351150
#: ports/cxd56/common-hal/busio/I2C.c ports/cxd56/common-hal/busio/SPI.c
11361151
#: ports/cxd56/common-hal/busio/UART.c ports/cxd56/common-hal/sdioio/SDCard.c
11371152
#: ports/esp32s2/common-hal/busio/I2C.c ports/esp32s2/common-hal/busio/SPI.c
1138-
#: ports/esp32s2/common-hal/busio/UART.c
1153+
#: ports/esp32s2/common-hal/busio/UART.c ports/esp32s2/common-hal/canio/CAN.c
11391154
#: ports/mimxrt10xx/common-hal/busio/I2C.c
11401155
#: ports/mimxrt10xx/common-hal/busio/SPI.c
11411156
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/nrf/common-hal/busio/I2C.c
@@ -1258,7 +1273,6 @@ msgid "No CCCD for this Characteristic"
12581273
msgstr "Tidak ada CCCD untuk Karakteristik ini"
12591274

12601275
#: ports/atmel-samd/common-hal/analogio/AnalogOut.c
1261-
#: ports/esp32s2/common-hal/analogio/AnalogOut.c
12621276
#: ports/stm/common-hal/analogio/AnalogOut.c
12631277
msgid "No DAC on chip"
12641278
msgstr "Tidak ada DAC (Digital Analog Converter) di dalam chip"
@@ -1427,6 +1441,10 @@ msgstr ""
14271441
"Hanya monokrom, 4bpp atau 8bpp yang diindeks, dan 16bpp atau lebih yang "
14281442
"didukung: %d bpp diberikan"
14291443

1444+
#: shared-module/displayio/ColorConverter.c
1445+
msgid "Only one color can be transparent at a time"
1446+
msgstr ""
1447+
14301448
#: shared-bindings/ipaddress/__init__.c
14311449
msgid "Only raw int supported for ip"
14321450
msgstr ""
@@ -2150,6 +2168,10 @@ msgstr ""
21502168
msgid "buffer too small"
21512169
msgstr ""
21522170

2171+
#: shared-bindings/socketpool/Socket.c
2172+
msgid "buffer too small for requested bytes"
2173+
msgstr ""
2174+
21532175
#: shared-bindings/_pew/PewPew.c
21542176
msgid "buttons must be digitalio.DigitalInOut"
21552177
msgstr ""
@@ -2775,6 +2797,10 @@ msgstr "format tidak valid"
27752797
msgid "invalid format specifier"
27762798
msgstr ""
27772799

2800+
#: shared-bindings/wifi/Radio.c
2801+
msgid "invalid hostname"
2802+
msgstr ""
2803+
27782804
#: extmod/modussl_axtls.c
27792805
msgid "invalid key"
27802806
msgstr "key tidak valid"
@@ -2868,6 +2894,10 @@ msgstr ""
28682894
msgid "long int not supported in this build"
28692895
msgstr ""
28702896

2897+
#: ports/esp32s2/common-hal/canio/CAN.c
2898+
msgid "loopback + silent mode not supported by peripheral"
2899+
msgstr ""
2900+
28712901
#: py/parse.c
28722902
msgid "malformed f-string"
28732903
msgstr ""
@@ -2902,6 +2932,14 @@ msgstr ""
29022932
msgid "maximum recursion depth exceeded"
29032933
msgstr ""
29042934

2935+
#: extmod/ulab/code/approx/approx.c
2936+
msgid "maxiter must be > 0"
2937+
msgstr ""
2938+
2939+
#: extmod/ulab/code/approx/approx.c
2940+
msgid "maxiter should be > 0"
2941+
msgstr ""
2942+
29052943
#: py/runtime.c
29062944
#, c-format
29072945
msgid "memory allocation failed, allocating %u bytes"
@@ -3213,6 +3251,8 @@ msgstr ""
32133251
#: ports/esp32s2/boards/espressif_saola_1_wrover/mpconfigboard.h
32143252
#: ports/esp32s2/boards/microdev_micro_s2/mpconfigboard.h
32153253
#: ports/esp32s2/boards/muselab_nanoesp32_s2/mpconfigboard.h
3254+
#: ports/esp32s2/boards/targett_module_clip_wroom/mpconfigboard.h
3255+
#: ports/esp32s2/boards/targett_module_clip_wrover/mpconfigboard.h
32163256
#: ports/esp32s2/boards/unexpectedmaker_feathers2/mpconfigboard.h
32173257
#: ports/esp32s2/boards/unexpectedmaker_feathers2_prerelease/mpconfigboard.h
32183258
msgid "pressing boot button at start up.\n"
@@ -3335,6 +3375,10 @@ msgstr "memulai ulang software(soft reboot)\n"
33353375
msgid "sort argument must be an ndarray"
33363376
msgstr ""
33373377

3378+
#: extmod/ulab/code/numerical/numerical.c
3379+
msgid "sorted axis can't be longer than 65535"
3380+
msgstr ""
3381+
33383382
#: extmod/ulab/code/filter/filter.c
33393383
msgid "sos array must be of shape (n_section, 6)"
33403384
msgstr ""
@@ -3465,6 +3509,16 @@ msgstr ""
34653509
msgid "tuple/list has wrong length"
34663510
msgstr ""
34673511

3512+
#: ports/esp32s2/common-hal/canio/CAN.c
3513+
#, c-format
3514+
msgid "twai_driver_install returned esp-idf error #%d"
3515+
msgstr ""
3516+
3517+
#: ports/esp32s2/common-hal/canio/CAN.c
3518+
#, c-format
3519+
msgid "twai_start returned esp-idf error #%d"
3520+
msgstr ""
3521+
34683522
#: ports/atmel-samd/common-hal/busio/UART.c
34693523
#: ports/esp32s2/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
34703524
#: shared-bindings/busio/UART.c shared-bindings/canio/CAN.c

0 commit comments

Comments
 (0)