Skip to content

Commit 28e4834

Browse files
authored
Merge branch 'adafruit:main' into main
2 parents a568a5c + 6230dea commit 28e4834

File tree

28 files changed

+256
-121
lines changed

28 files changed

+256
-121
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Set up Python 3
3838
uses: actions/setup-python@v4
3939
with:
40-
python-version: "3.x"
40+
python-version: "3.10"
4141
- name: Get CP deps
4242
run: python tools/ci_fetch_deps.py test ${{ github.sha }}
4343
- name: CircuitPython version
@@ -156,7 +156,7 @@ jobs:
156156
- name: Set up Python 3
157157
uses: actions/setup-python@v4
158158
with:
159-
python-version: "3.x"
159+
python-version: "3.10"
160160
- name: Get CP deps
161161
run: python tools/ci_fetch_deps.py mpy-cross-mac ${{ github.sha }}
162162
- name: CircuitPython version
@@ -220,7 +220,7 @@ jobs:
220220
- name: Set up Python 3
221221
uses: actions/setup-python@v4
222222
with:
223-
python-version: "3.x"
223+
python-version: "3.10"
224224
- name: Install dependencies
225225
run: |
226226
sudo apt-get update
@@ -278,7 +278,7 @@ jobs:
278278
- name: Set up Python 3
279279
uses: actions/setup-python@v4
280280
with:
281-
python-version: "3.x"
281+
python-version: "3.10"
282282
- uses: actions/checkout@v3
283283
with:
284284
submodules: false
@@ -331,7 +331,7 @@ jobs:
331331
- name: Set up Python 3
332332
uses: actions/setup-python@v4
333333
with:
334-
python-version: "3.x"
334+
python-version: "3.10"
335335
- uses: actions/checkout@v3
336336
with:
337337
submodules: false
@@ -384,7 +384,7 @@ jobs:
384384
id: py3
385385
uses: actions/setup-python@v4
386386
with:
387-
python-version: "3.x"
387+
python-version: "3.10"
388388
- uses: actions/checkout@v3
389389
with:
390390
submodules: false
@@ -473,7 +473,7 @@ jobs:
473473
- name: Set up Python 3
474474
uses: actions/setup-python@v4
475475
with:
476-
python-version: "3.x"
476+
python-version: "3.10"
477477
- uses: actions/checkout@v3
478478
with:
479479
submodules: false

.github/workflows/create_website_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Python 3
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: "3.x"
26+
python-version: "3.10"
2727
- name: Get CP deps
2828
run: python tools/ci_fetch_deps.py website ${{ github.sha }}
2929
- name: Install deps

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python 3
2121
uses: actions/setup-python@v4
2222
with:
23-
python-version: "3.x"
23+
python-version: "3.10"
2424
- name: Install deps
2525
run: |
2626
sudo apt-get install -y gettext uncrustify

BUILDING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Failing to install these will prevent from properly building.
3535

3636
pip3 install -r requirements-dev.txt
3737

38+
If you run into an error installing minify_html, you may need to install `rust`.
39+
3840
### mpy-cross
3941

4042
As part of the build process, mpy-cross is needed to compile .py files into .mpy files.

extmod/moduasyncio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ STATIC mp_obj_t ticks(void) {
8383
// shared-bindings/supervisor/__init__.c). We assume/require that
8484
// supervisor.ticks_ms is picked as the ticks implementation under
8585
// CircuitPython for the Python-coded bits of asyncio.
86-
#define ticks() MP_OBJ_NEW_SMALL_INT(supervisor_ticks_ms())
86+
#define ticks() supervisor_ticks_ms()
8787
#endif
8888

8989
STATIC mp_int_t ticks_diff(mp_obj_t t1_in, mp_obj_t t0_in) {

extmod/moduselect.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "py/stream.h"
1717
#include "py/mperrno.h"
1818
#include "py/mphal.h"
19+
#include "shared/runtime/interrupt_char.h"
1920

2021
// Flags for poll()
2122
#define FLAG_ONESHOT (1)
@@ -230,6 +231,9 @@ STATIC mp_uint_t poll_poll_internal(uint n_args, const mp_obj_t *args) {
230231
break;
231232
}
232233
RUN_BACKGROUND_TASKS;
234+
if (mp_hal_is_interrupted()) {
235+
return 0;
236+
}
233237
}
234238

235239
return n_ready;

locale/circuitpython.pot

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ msgstr ""
110110
msgid "%q index out of range"
111111
msgstr ""
112112

113-
#: py/obj.c
114-
msgid "%q indices must be integers, not %s"
115-
msgstr ""
116-
117113
#: shared-module/bitbangio/SPI.c
118114
msgid "%q init failed"
119115
msgstr ""
@@ -2341,10 +2337,6 @@ msgstr ""
23412337
msgid "WatchDogTimer.mode cannot be changed once set to WatchDogMode.RESET"
23422338
msgstr ""
23432339

2344-
#: shared-bindings/watchdog/WatchDogTimer.c
2345-
msgid "WatchDogTimer.timeout must be greater than 0"
2346-
msgstr ""
2347-
23482340
#: py/builtinhelp.c
23492341
#, c-format
23502342
msgid ""
@@ -3166,10 +3158,6 @@ msgstr ""
31663158
msgid "index out of range"
31673159
msgstr ""
31683160

3169-
#: py/obj.c
3170-
msgid "indices must be integers"
3171-
msgstr ""
3172-
31733161
#: extmod/ulab/code/ndarray.c
31743162
msgid "indices must be integers, slices, or Boolean lists"
31753163
msgstr ""
@@ -3586,10 +3574,6 @@ msgstr ""
35863574
msgid "no such attribute"
35873575
msgstr ""
35883576

3589-
#: shared-bindings/usb_hid/__init__.c
3590-
msgid "non-Device in %q"
3591-
msgstr ""
3592-
35933577
#: ports/espressif/common-hal/_bleio/Connection.c
35943578
#: ports/nrf/common-hal/_bleio/Connection.c
35953579
msgid "non-UUID found in service_uuids_whitelist"
@@ -3863,11 +3847,6 @@ msgstr ""
38633847
msgid "relative import"
38643848
msgstr ""
38653849

3866-
#: py/obj.c
3867-
#, c-format
3868-
msgid "requested length %d but object has length %d"
3869-
msgstr ""
3870-
38713850
#: extmod/ulab/code/ndarray_operators.c
38723851
msgid "results cannot be cast to specified type"
38733852
msgstr ""
@@ -3931,10 +3910,6 @@ msgstr ""
39313910
msgid "sign not allowed with integer format specifier 'c'"
39323911
msgstr ""
39333912

3934-
#: py/objstr.c
3935-
msgid "single '}' encountered in format string"
3936-
msgstr ""
3937-
39383913
#: extmod/ulab/code/ulab_tools.c
39393914
msgid "size is defined for ndarrays only"
39403915
msgstr ""
@@ -4047,10 +4022,6 @@ msgstr ""
40474022
msgid "syntax error in uctypes descriptor"
40484023
msgstr ""
40494024

4050-
#: shared-bindings/touchio/TouchIn.c
4051-
msgid "threshold must be in the range 0-65536"
4052-
msgstr ""
4053-
40544025
#: shared-bindings/time/__init__.c
40554026
msgid "time.struct_time() takes a 9-sequence"
40564027
msgstr ""
@@ -4062,10 +4033,6 @@ msgstr ""
40624033
msgid "timeout duration exceeded the maximum supported value"
40634034
msgstr ""
40644035

4065-
#: shared-bindings/busio/UART.c
4066-
msgid "timeout must be 0.0-100.0 seconds"
4067-
msgstr ""
4068-
40694036
#: ports/nrf/common-hal/_bleio/Adapter.c
40704037
msgid "timeout must be < 655.35 secs"
40714038
msgstr ""
@@ -4119,10 +4086,6 @@ msgstr ""
41194086
msgid "trapz is defined for 1D iterables"
41204087
msgstr ""
41214088

4122-
#: py/obj.c
4123-
msgid "tuple/list has wrong length"
4124-
msgstr ""
4125-
41264089
#: ports/espressif/common-hal/canio/CAN.c
41274090
#, c-format
41284091
msgid "twai_driver_install returned esp-idf error #%d"
@@ -4201,7 +4164,8 @@ msgid "unknown type '%q'"
42014164
msgstr ""
42024165

42034166
#: py/objstr.c
4204-
msgid "unmatched '{' in format"
4167+
#, c-format
4168+
msgid "unmatched '%c' in format"
42054169
msgstr ""
42064170

42074171
#: py/objtype.c py/runtime.c
@@ -4272,10 +4236,6 @@ msgstr ""
42724236
msgid "watchdog not initialized"
42734237
msgstr ""
42744238

4275-
#: shared-bindings/watchdog/WatchDogTimer.c
4276-
msgid "watchdog timeout must be greater than 0"
4277-
msgstr ""
4278-
42794239
#: shared-bindings/is31fl3741/FrameBuffer.c
42804240
msgid "width must be greater than zero"
42814241
msgstr ""

locale/pt_BR.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2021-01-04 12:55-0600\n"
9-
"PO-Revision-Date: 2022-10-29 22:00+0000\n"
9+
"PO-Revision-Date: 2022-11-02 09:33+0000\n"
1010
"Last-Translator: Wellington Terumi Uemura <[email protected]>\n"
1111
"Language-Team: \n"
1212
"Language: pt_BR\n"
@@ -608,7 +608,7 @@ msgstr "Ambos os RX e TX são necessários para o controle do fluxo"
608608
#: ports/atmel-samd/boards/circuitplayground_express_displayio/mpconfigboard.h
609609
#: ports/atmel-samd/boards/meowmeow/mpconfigboard.h
610610
msgid "Both buttons were pressed at start up.\n"
611-
msgstr ""
611+
msgstr "Ambos os botões foram pressionados na inicialização.\n"
612612

613613
#: ports/atmel-samd/common-hal/rotaryio/IncrementalEncoder.c
614614
msgid "Both pins must support hardware interrupts"
@@ -678,7 +678,7 @@ msgstr "O pino bus %d já está em uso"
678678
#: ports/espressif/boards/m5stack_core_basic/mpconfigboard.h
679679
#: ports/espressif/boards/m5stack_core_fire/mpconfigboard.h
680680
msgid "Button A was pressed at start up.\n"
681-
msgstr ""
681+
msgstr "O botão A foi pressionado na inicialização.\n"
682682

683683
#: shared-bindings/_bleio/UUID.c
684684
msgid "Byte buffer must be 16 bytes."
@@ -2045,7 +2045,7 @@ msgstr "A leitura da temperatura expirou"
20452045

20462046
#: supervisor/shared/safe_mode.c
20472047
msgid "The BOOT button was pressed at start up.\n"
2048-
msgstr ""
2048+
msgstr "O botão BOOT foi pressionado na inicialização.\n"
20492049

20502050
#: supervisor/shared/safe_mode.c
20512051
msgid ""
@@ -2058,11 +2058,11 @@ msgstr ""
20582058

20592059
#: ports/espressif/boards/adafruit_feather_esp32_v2/mpconfigboard.h
20602060
msgid "The SW38 button was pressed at start up.\n"
2061-
msgstr ""
2061+
msgstr "O botão SW38 foi pressionado na inicialização.\n"
20622062

20632063
#: ports/espressif/boards/hardkernel_odroid_go/mpconfigboard.h
20642064
msgid "The VOLUME button was pressed at start up.\n"
2065-
msgstr ""
2065+
msgstr "O botão VOLUME foi pressionado na inicialização.\n"
20662066

20672067
#: supervisor/shared/safe_mode.c
20682068
msgid ""
@@ -2074,11 +2074,11 @@ msgstr ""
20742074

20752075
#: ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h
20762076
msgid "The central button was pressed at start up.\n"
2077-
msgstr ""
2077+
msgstr "O botão central foi pressionado na inicialização.\n"
20782078

20792079
#: ports/nrf/boards/aramcon2_badge/mpconfigboard.h
20802080
msgid "The left button was pressed at start up.\n"
2081-
msgstr ""
2081+
msgstr "O botão esquerdo foi pressionado na inicialização.\n"
20822082

20832083
#: shared-bindings/rgbmatrix/RGBMatrix.c
20842084
msgid "The length of rgb_pins must be 6, 12, 18, 24, or 30"
@@ -2149,7 +2149,7 @@ msgstr ""
21492149

21502150
#: supervisor/shared/safe_mode.c
21512151
msgid "To exit, please reset the board without requesting safe mode."
2152-
msgstr ""
2152+
msgstr "Para sair, reinicie a placa sem solicitar o modo de segurança."
21532153

21542154
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
21552155
msgid "Too many channels in sample"

locale/sv.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2021-01-04 12:55-0600\n"
9-
"PO-Revision-Date: 2022-10-29 22:00+0000\n"
9+
"PO-Revision-Date: 2022-10-31 13:02+0000\n"
1010
"Last-Translator: Jonny Bergdahl <[email protected]>\n"
1111
"Language-Team: LANGUAGE <[email protected]>\n"
1212
"Language: sv\n"
@@ -600,7 +600,7 @@ msgstr "Både RX och TX krävs för handskakning"
600600
#: ports/atmel-samd/boards/circuitplayground_express_displayio/mpconfigboard.h
601601
#: ports/atmel-samd/boards/meowmeow/mpconfigboard.h
602602
msgid "Both buttons were pressed at start up.\n"
603-
msgstr ""
603+
msgstr "Båda knapparna trycktes ned vid start.\n"
604604

605605
#: ports/atmel-samd/common-hal/rotaryio/IncrementalEncoder.c
606606
msgid "Both pins must support hardware interrupts"
@@ -670,7 +670,7 @@ msgstr "Busspinne %d används redan"
670670
#: ports/espressif/boards/m5stack_core_basic/mpconfigboard.h
671671
#: ports/espressif/boards/m5stack_core_fire/mpconfigboard.h
672672
msgid "Button A was pressed at start up.\n"
673-
msgstr ""
673+
msgstr "Knapp A trycktes ned vid start.\n"
674674

675675
#: shared-bindings/_bleio/UUID.c
676676
msgid "Byte buffer must be 16 bytes."
@@ -2024,7 +2024,7 @@ msgstr "Temperaturavläsning tog för lång tid"
20242024

20252025
#: supervisor/shared/safe_mode.c
20262026
msgid "The BOOT button was pressed at start up.\n"
2027-
msgstr ""
2027+
msgstr "BOOT-knappen trycktes ner vid start.\n"
20282028

20292029
#: supervisor/shared/safe_mode.c
20302030
msgid ""
@@ -2036,11 +2036,11 @@ msgstr ""
20362036

20372037
#: ports/espressif/boards/adafruit_feather_esp32_v2/mpconfigboard.h
20382038
msgid "The SW38 button was pressed at start up.\n"
2039-
msgstr ""
2039+
msgstr "SW38-knappen trycktes ned vid start.\n"
20402040

20412041
#: ports/espressif/boards/hardkernel_odroid_go/mpconfigboard.h
20422042
msgid "The VOLUME button was pressed at start up.\n"
2043-
msgstr ""
2043+
msgstr "VOLUME-knappen trycktes ned vid start.\n"
20442044

20452045
#: supervisor/shared/safe_mode.c
20462046
msgid ""
@@ -2052,11 +2052,11 @@ msgstr ""
20522052

20532053
#: ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h
20542054
msgid "The central button was pressed at start up.\n"
2055-
msgstr ""
2055+
msgstr "Mittknappen trycktes in vid start.\n"
20562056

20572057
#: ports/nrf/boards/aramcon2_badge/mpconfigboard.h
20582058
msgid "The left button was pressed at start up.\n"
2059-
msgstr ""
2059+
msgstr "Den vänstra knappen trycktes ned vid start.\n"
20602060

20612061
#: shared-bindings/rgbmatrix/RGBMatrix.c
20622062
msgid "The length of rgb_pins must be 6, 12, 18, 24, or 30"
@@ -2125,7 +2125,7 @@ msgstr "Åtgärden tog för lång tid: Max väntetid är %d sekunder"
21252125

21262126
#: supervisor/shared/safe_mode.c
21272127
msgid "To exit, please reset the board without requesting safe mode."
2128-
msgstr ""
2128+
msgstr "För att avsluta, återställ kortet utan att begära säkert läge."
21292129

21302130
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
21312131
msgid "Too many channels in sample"

0 commit comments

Comments
 (0)