Skip to content

Commit a31dc5c

Browse files
authored
Merge branch 'adafruit:main' into main
2 parents 3abcc6a + 018f15d commit a31dc5c

File tree

450 files changed

+22588
-2581
lines changed

Some content is hidden

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

450 files changed

+22588
-2581
lines changed

.github/actions/deps/external/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ runs:
3030
# espressif
3131
- name: Get espressif toolchain
3232
if: inputs.port == 'espressif'
33-
run: sudo apt-get install -y ninja-build
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y ninja-build
3436
shell: bash
3537
- name: Install IDF tools
3638
if: inputs.port == 'espressif'

.github/actions/deps/ports/broadcom/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ runs:
77
run: |
88
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
99
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
10+
sudo apt-get update
1011
sudo apt-get install -y mtools
1112
shell: bash
1213
- name: Install mkfs.fat

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ jobs:
174174
uses: ./.github/actions/deps/submodules
175175
- name: Install dependencies
176176
run: |
177+
sudo apt-get update
177178
sudo apt-get install -y latexmk librsvg2-bin texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
178179
pip install -r requirements-doc.txt
179180
- name: Build and Validate Stubs

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- name: Set up external
3131
uses: ./.github/actions/deps/external
3232
- name: Install dependencies
33-
run: sudo apt-get install -y gettext uncrustify
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y gettext uncrustify
3436
- name: Run pre-commit
3537
uses: pre-commit/[email protected]
3638
- name: Make patch

.gitmodules

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,3 +324,17 @@
324324
path = ports/broadcom/peripherals
325325
url = https://github.com/adafruit/broadcom-peripherals.git
326326
branch = main-build
327+
[submodule "ports/silabs/gecko_sdk"]
328+
path = ports/silabs/gecko_sdk
329+
url = https://github.com/SiliconLabs/gecko_sdk.git
330+
branch = v4.2.1
331+
[submodule "ports/silabs/tools/slc_cli_linux"]
332+
path = ports/silabs/tools/slc_cli_linux
333+
url = https://github.com/SiliconLabs/circuitpython_slc_cli_linux
334+
[submodule "ports/raspberrypi/lib/PicoDVI"]
335+
path = ports/raspberrypi/lib/PicoDVI
336+
url = https://github.com/circuitpython/PicoDVI.git
337+
branch = circuitpython
338+
[submodule "frozen/circuitpython-pcf85063a"]
339+
path = frozen/circuitpython-pcf85063a
340+
url = https://github.com/bablokb/circuitpython-pcf85063a

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ accordingly.
123123

124124
## Attribution
125125

126-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
126+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
127127
version 1.4, available at
128128
<https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>,
129129
and the [Rust Code of Conduct](https://www.rust-lang.org/en-US/conduct.html).

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,3 +345,7 @@ fetch-submodules:
345345
remove-submodules:
346346
git submodule deinit -f --all
347347
rm -rf .git/modules/*
348+
349+
.PHONY: fetch-tags
350+
fetch-tags:
351+
git fetch --tags --recurse-submodules=no --shallow-since="2023-02-01" https://github.com/adafruit/circuitpython HEAD

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ def autoapi_prepare_jinja_env(jinja_env):
216216
"ports/nrf/usb",
217217
"ports/raspberrypi/sdk",
218218
"ports/raspberrypi/lib",
219+
"ports/silabs",
219220
"ports/stm/st_driver",
220221
"ports/stm/packages",
221222
"ports/stm/peripherals",

data/nvm.toml

docs/environment.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ CIRCUITPY_WEB_API_PORT
7474
~~~~~~~~~~~~~~~~~~~~~~
7575
TCP port number used for the web HTTP API. Defaults to 80 when omitted.
7676

77+
CIRCUITPY_WEB_INSTANCE_NAME
78+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
79+
Name the board advertises as for the WEB workflow. Defaults to human readable board name if omitted.
80+
7781
CIRCUITPY_WIFI_PASSWORD
7882
~~~~~~~~~~~~~~~~~~~~~~~
7983
Wi-Fi password used to auto connect to CIRCUITPY_WIFI_SSID.

docs/shared_bindings_matrix.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"mimxrt10xx",
4141
"nrf",
4242
"raspberrypi",
43+
"silabs",
4344
"stm",
4445
]
4546

docs/workflows.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Read-only characteristic that returns the UTF-8 encoded version string.
7272
The web workflow is depends on adding Wi-Fi credentials into the `settings.toml` file. The keys are
7373
`CIRCUITPY_WIFI_SSID` and `CIRCUITPY_WIFI_PASSWORD`. Once these are defined, CircuitPython will
7474
automatically connect to the network and start the webserver used for the workflow. The webserver
75-
is on port 80 unless overridden by `CIRCUITPY_WEB_API_PORT`. It also enables MDNS.
75+
is on port 80 unless overridden by `CIRCUITPY_WEB_API_PORT`. It also enables MDNS. The name
76+
of the board as advertised to the network can be overridden by `CIRCUITPY_WEB_INSTANCE_NAME`.
7677

7778
Here is an example `/settings.toml`:
7879

@@ -86,6 +87,7 @@ CIRCUITPY_WIFI_PASSWORD="secretpassword"
8687
CIRCUITPY_WEB_API_PASSWORD="passw0rd"
8788

8889
CIRCUITPY_WEB_API_PORT=80
90+
CIRCUITPY_WEB_INSTANCE_NAME=""
8991
```
9092

9193
MDNS is used to resolve [`circuitpython.local`](http://circuitpython.local) to a device specific

frozen/circuitpython-pcf85063a

Submodule circuitpython-pcf85063a added at 85aa931

lib/tinyusb

Submodule tinyusb updated 151 files

locale/ID.po

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ msgstr ""
101101
#: ports/raspberrypi/common-hal/analogio/AnalogOut.c
102102
#: ports/raspberrypi/common-hal/rtc/RTC.c ports/stm/common-hal/alarm/__init__.c
103103
#: ports/stm/common-hal/canio/Listener.c ports/stm/common-hal/rtc/RTC.c
104+
#: shared-bindings/audiobusio/I2SOut.c shared-bindings/audiobusio/PDMIn.c
105+
#: shared-bindings/keypad/KeyMatrix.c shared-bindings/keypad/Keys.c
106+
#: shared-bindings/keypad/ShiftRegisterKeys.c
104107
msgid "%q"
105108
msgstr ""
106109

@@ -126,6 +129,7 @@ msgstr ""
126129

127130
#: ports/espressif/common-hal/espulp/ULP.c
128131
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
132+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
129133
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
130134
#: shared-bindings/digitalio/DigitalInOut.c
131135
#: shared-bindings/microcontroller/Pin.c
@@ -164,11 +168,11 @@ msgstr ""
164168
msgid "%q length must be >= %d"
165169
msgstr ""
166170

167-
#: py/argcheck.c
171+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c py/argcheck.c
168172
msgid "%q must be %d"
169173
msgstr ""
170174

171-
#: py/argcheck.c
175+
#: py/argcheck.c shared-bindings/displayio/Bitmap.c
172176
msgid "%q must be %d-%d"
173177
msgstr "%q harus %d-%d"
174178

@@ -196,7 +200,7 @@ msgstr ""
196200
msgid "%q must be array of type 'H'"
197201
msgstr ""
198202

199-
#: shared-bindings/synthio/MidiTrack.c shared-bindings/synthio/__init__.c
203+
#: shared-module/synthio/__init__.c
200204
msgid "%q must be array of type 'h'"
201205
msgstr ""
202206

@@ -468,6 +472,7 @@ msgstr ""
468472
msgid "All event channels in use"
469473
msgstr "Semua channel event sedang digunakan"
470474

475+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
471476
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
472477
msgid "All state machines in use"
473478
msgstr ""
@@ -476,6 +481,7 @@ msgstr ""
476481
msgid "All sync event channels in use"
477482
msgstr "Semua channel event yang disinkronisasi sedang digunakan"
478483

484+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
479485
#: shared-bindings/pwmio/PWMOut.c
480486
msgid "All timers for this pin are in use"
481487
msgstr "Semua timer untuk pin ini sedang digunakan"
@@ -1127,10 +1133,6 @@ msgstr ""
11271133
msgid "I2C peripheral in use"
11281134
msgstr ""
11291135

1130-
#: shared-bindings/audiobusio/I2SOut.c
1131-
msgid "I2SOut not available"
1132-
msgstr ""
1133-
11341136
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
11351137
msgid "In-buffer elements must be <= 4 bytes long"
11361138
msgstr ""
@@ -1235,7 +1237,9 @@ msgid "Interrupt error."
12351237
msgstr ""
12361238

12371239
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
1238-
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c py/argcheck.c
1240+
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
1241+
#: ports/raspberrypi/bindings/picodvi/Framebuffer.c
1242+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c py/argcheck.c
12391243
#: shared-bindings/digitalio/DigitalInOut.c
12401244
#: shared-bindings/displayio/EPaperDisplay.c
12411245
msgid "Invalid %q"
@@ -1294,6 +1298,10 @@ msgstr ""
12941298
msgid "Invalid format chunk size"
12951299
msgstr "Ukuran potongan format tidak valid"
12961300

1301+
#: shared-bindings/wifi/Radio.c
1302+
msgid "Invalid hex password"
1303+
msgstr ""
1304+
12971305
#: ports/espressif/common-hal/wifi/Radio.c
12981306
msgid "Invalid multicast MAC address"
12991307
msgstr ""
@@ -1725,10 +1733,6 @@ msgstr ""
17251733
msgid "Oversample must be multiple of 8."
17261734
msgstr "Sampel berlebihan harus kelipatan 8."
17271735

1728-
#: shared-bindings/audiobusio/PDMIn.c
1729-
msgid "PDMIn not available"
1730-
msgstr ""
1731-
17321736
#: shared-bindings/pwmio/PWMOut.c
17331737
msgid ""
17341738
"PWM frequency not writable when variable_frequency is False on construction."

locale/circuitpython.pot

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ msgstr ""
9898
#: ports/raspberrypi/common-hal/analogio/AnalogOut.c
9999
#: ports/raspberrypi/common-hal/rtc/RTC.c ports/stm/common-hal/alarm/__init__.c
100100
#: ports/stm/common-hal/canio/Listener.c ports/stm/common-hal/rtc/RTC.c
101+
#: shared-bindings/audiobusio/I2SOut.c shared-bindings/audiobusio/PDMIn.c
102+
#: shared-bindings/keypad/KeyMatrix.c shared-bindings/keypad/Keys.c
103+
#: shared-bindings/keypad/ShiftRegisterKeys.c
101104
msgid "%q"
102105
msgstr ""
103106

@@ -123,6 +126,7 @@ msgstr ""
123126

124127
#: ports/espressif/common-hal/espulp/ULP.c
125128
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
129+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
126130
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
127131
#: shared-bindings/digitalio/DigitalInOut.c
128132
#: shared-bindings/microcontroller/Pin.c
@@ -161,11 +165,11 @@ msgstr ""
161165
msgid "%q length must be >= %d"
162166
msgstr ""
163167

164-
#: py/argcheck.c
168+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c py/argcheck.c
165169
msgid "%q must be %d"
166170
msgstr ""
167171

168-
#: py/argcheck.c
172+
#: py/argcheck.c shared-bindings/displayio/Bitmap.c
169173
msgid "%q must be %d-%d"
170174
msgstr ""
171175

@@ -193,7 +197,7 @@ msgstr ""
193197
msgid "%q must be array of type 'H'"
194198
msgstr ""
195199

196-
#: shared-bindings/synthio/MidiTrack.c shared-bindings/synthio/__init__.c
200+
#: shared-module/synthio/__init__.c
197201
msgid "%q must be array of type 'h'"
198202
msgstr ""
199203

@@ -465,6 +469,7 @@ msgstr ""
465469
msgid "All event channels in use"
466470
msgstr ""
467471

472+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
468473
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
469474
msgid "All state machines in use"
470475
msgstr ""
@@ -473,6 +478,7 @@ msgstr ""
473478
msgid "All sync event channels in use"
474479
msgstr ""
475480

481+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
476482
#: shared-bindings/pwmio/PWMOut.c
477483
msgid "All timers for this pin are in use"
478484
msgstr ""
@@ -1117,10 +1123,6 @@ msgstr ""
11171123
msgid "I2C peripheral in use"
11181124
msgstr ""
11191125

1120-
#: shared-bindings/audiobusio/I2SOut.c
1121-
msgid "I2SOut not available"
1122-
msgstr ""
1123-
11241126
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
11251127
msgid "In-buffer elements must be <= 4 bytes long"
11261128
msgstr ""
@@ -1223,7 +1225,9 @@ msgid "Interrupt error."
12231225
msgstr ""
12241226

12251227
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
1226-
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c py/argcheck.c
1228+
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
1229+
#: ports/raspberrypi/bindings/picodvi/Framebuffer.c
1230+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c py/argcheck.c
12271231
#: shared-bindings/digitalio/DigitalInOut.c
12281232
#: shared-bindings/displayio/EPaperDisplay.c
12291233
msgid "Invalid %q"
@@ -1282,6 +1286,10 @@ msgstr ""
12821286
msgid "Invalid format chunk size"
12831287
msgstr ""
12841288

1289+
#: shared-bindings/wifi/Radio.c
1290+
msgid "Invalid hex password"
1291+
msgstr ""
1292+
12851293
#: ports/espressif/common-hal/wifi/Radio.c
12861294
msgid "Invalid multicast MAC address"
12871295
msgstr ""
@@ -1708,10 +1716,6 @@ msgstr ""
17081716
msgid "Oversample must be multiple of 8."
17091717
msgstr ""
17101718

1711-
#: shared-bindings/audiobusio/PDMIn.c
1712-
msgid "PDMIn not available"
1713-
msgstr ""
1714-
17151719
#: shared-bindings/pwmio/PWMOut.c
17161720
msgid ""
17171721
"PWM frequency not writable when variable_frequency is False on construction."

0 commit comments

Comments
 (0)