Skip to content

Commit 4618147

Browse files
committed
Merge branch 'main' into pdmin
2 parents 34a99d1 + ae2bbbb commit 4618147

File tree

12 files changed

+136
-29
lines changed

12 files changed

+136
-29
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

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"

ports/raspberrypi/boards/42keebs_frood/pins.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
4343
{ MP_ROM_QSTR(MP_QSTR_D15), MP_ROM_PTR(&pin_GPIO15) },
4444
{ MP_ROM_QSTR(MP_QSTR_D16), MP_ROM_PTR(&pin_GPIO16) },
4545

46+
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_GPIO17) },
47+
{ MP_ROM_QSTR(MP_QSTR_D17), MP_ROM_PTR(&pin_GPIO17) },
48+
{ MP_ROM_QSTR(MP_QSTR_VBUS_SENSE), MP_ROM_PTR(&pin_GPIO19) },
49+
{ MP_ROM_QSTR(MP_QSTR_D19), MP_ROM_PTR(&pin_GPIO19) },
50+
4651
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
4752
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
4853
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* This file is part of the MicroPython project, http://micropython.org/
3+
*
4+
* The MIT License (MIT)
5+
*
6+
* Copyright (c) 2021 Scott Shawcroft for Adafruit Industries
7+
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24+
* THE SOFTWARE.
25+
*/
26+
27+
#include "supervisor/board.h"
28+
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040 Scorpio"
2+
#define MICROPY_HW_MCU_NAME "rp2040"
3+
4+
#define MICROPY_HW_NEOPIXEL (&pin_GPIO16)
5+
6+
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
7+
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
8+
9+
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO14)
10+
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO15)
11+
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO8)
12+
13+
#define DEFAULT_UART_BUS_RX (&pin_GPIO1)
14+
#define DEFAULT_UART_BUS_TX (&pin_GPIO0)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
USB_VID = 0x239A
2+
USB_PID = 0x8122
3+
USB_PRODUCT = "Feather RP2040 Scorpio"
4+
USB_MANUFACTURER = "Adafruit"
5+
6+
CHIP_VARIANT = RP2040
7+
CHIP_FAMILY = rp2
8+
9+
EXTERNAL_FLASH_DEVICES = "GD25Q64C,W25Q64JVxQ"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Put board-specific pico-sdk definitions here. This file must exist.
2+
3+
// Allow extra time for xosc to start.
4+
#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#include "shared-bindings/board/__init__.h"
2+
3+
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
4+
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
5+
6+
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_GPIO26) },
7+
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_GPIO27) },
8+
{ MP_ROM_QSTR(MP_QSTR_A2), MP_ROM_PTR(&pin_GPIO28) },
9+
{ MP_ROM_QSTR(MP_QSTR_A3), MP_ROM_PTR(&pin_GPIO29) },
10+
{ MP_ROM_QSTR(MP_QSTR_D24), MP_ROM_PTR(&pin_GPIO24) },
11+
{ MP_ROM_QSTR(MP_QSTR_D25), MP_ROM_PTR(&pin_GPIO25) },
12+
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_GPIO14) },
13+
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_GPIO15) },
14+
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_GPIO8) },
15+
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO1) },
16+
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO1) },
17+
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_GPIO0) },
18+
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO0) },
19+
{ MP_ROM_QSTR(MP_QSTR_D4), MP_ROM_PTR(&pin_GPIO4) },
20+
{ MP_ROM_QSTR(MP_QSTR_BOOT), MP_ROM_PTR(&pin_GPIO7) },
21+
22+
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO2) },
23+
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_GPIO3) },
24+
{ MP_ROM_QSTR(MP_QSTR_D5), MP_ROM_PTR(&pin_GPIO5) },
25+
{ MP_ROM_QSTR(MP_QSTR_D6), MP_ROM_PTR(&pin_GPIO6) },
26+
{ MP_ROM_QSTR(MP_QSTR_D9), MP_ROM_PTR(&pin_GPIO9) },
27+
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_GPIO10) },
28+
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_GPIO11) },
29+
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_GPIO12) },
30+
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_GPIO13) },
31+
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_GPIO13) },
32+
33+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_GPIO4) },
34+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL0), MP_ROM_PTR(&pin_GPIO16) },
35+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL1), MP_ROM_PTR(&pin_GPIO17) },
36+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL2), MP_ROM_PTR(&pin_GPIO18) },
37+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL3), MP_ROM_PTR(&pin_GPIO19) },
38+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL4), MP_ROM_PTR(&pin_GPIO20) },
39+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL5), MP_ROM_PTR(&pin_GPIO21) },
40+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL6), MP_ROM_PTR(&pin_GPIO22) },
41+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL7), MP_ROM_PTR(&pin_GPIO23) },
42+
43+
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
44+
{ MP_ROM_QSTR(MP_QSTR_STEMMA_I2C), MP_ROM_PTR(&board_i2c_obj) },
45+
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
46+
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
47+
};
48+
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

shared-bindings/adafruit_pixelbuf/__init__.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
//| The `adafruit_pixelbuf` module provides the :py:class:`PixelBuf` class to accelerate
3939
//| RGB(W) strip/matrix manipulation, such as DotStar and Neopixel.
4040
//|
41-
//| Also available as ``_pixelbuf``. This usage has been deprecated.
42-
//|
4341
//| Byteorders are configured with strings, such as "RGB" or "RGBD"."""
4442
// TODO: Pull in docs from adafruit_pixelbuf.
4543

0 commit comments

Comments
 (0)