Skip to content

Commit e18e5b2

Browse files
authored
Merge branch 'adafruit:main' into audiofilters_distortion
2 parents 5fbbeed + b7af46b commit e18e5b2

File tree

175 files changed

+3702
-587
lines changed

Some content is hidden

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

175 files changed

+3702
-587
lines changed

.github/actions/deps/submodules/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ inputs:
2222
- restore
2323

2424
version:
25-
description: 'Whether to generate CP version'
25+
description: 'Whether to fetch tags to identify CP version'
2626
required: false
2727
default: false
2828
type: boolean

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ jobs:
183183
python-version: 3.x
184184
- name: Set up submodules
185185
uses: ./.github/actions/deps/submodules
186+
with:
187+
version: true
186188
- name: Install dependencies
187189
run: |
188190
sudo apt-get update

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
[submodule "ports/espressif/esp-idf"]
144144
path = ports/espressif/esp-idf
145145
url = https://github.com/adafruit/esp-idf.git
146-
branch = circuitpython-v5.3.1
146+
branch = circuitpython-v5.3.2
147147
[submodule "ports/espressif/esp-protocols"]
148148
path = ports/espressif/esp-protocols
149149
url = https://github.com/adafruit/esp-protocols.git
@@ -345,7 +345,7 @@
345345
url = https://github.com/adafruit/Adafruit_CircuitPython_Wave.git
346346
[submodule "ports/raspberrypi/lib/Pico-PIO-USB"]
347347
path = ports/raspberrypi/lib/Pico-PIO-USB
348-
url = https://github.com/sekigon-gonnoc/Pico-PIO-USB.git
348+
url = https://github.com/adafruit/Pico-PIO-USB.git
349349
[submodule "lib/micropython-lib"]
350350
path = lib/micropython-lib
351351
url = https://github.com/micropython/micropython-lib.git

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(BASEOPTS)
4040
# the i18n builder cannot share the environment and doctrees with the others
4141
I18NSPHINXOPTS = $(BASEOPTS)
4242

43-
TRANSLATE_SOURCES = extmod lib main.c ports/atmel-samd ports/cxd56 ports/espressif ports/mimxrt10xx ports/nordic ports/raspberrypi ports/stm py shared-bindings shared-module supervisor
43+
TRANSLATE_SOURCES = extmod lib main.c ports/atmel-samd ports/analog ports/cxd56 ports/espressif ports/mimxrt10xx ports/nordic ports/raspberrypi ports/renode ports/stm py shared-bindings shared-module supervisor
4444
# Paths to exclude from TRANSLATE_SOURCES
4545
# Each must be preceded by "-path"; if any wildcards, enclose in quotes.
4646
# Separate by "-o" (Find's "or" operand)
@@ -268,7 +268,7 @@ stubs:
268268
@$(PYTHON) tools/extract_pyi.py ports/atmel-samd/bindings $(STUBDIR)
269269
@$(PYTHON) tools/extract_pyi.py ports/espressif/bindings $(STUBDIR)
270270
@$(PYTHON) tools/extract_pyi.py ports/raspberrypi/bindings $(STUBDIR)
271-
@cp setup.py-stubs circuitpython-stubs/setup.py
271+
@sed -e "s,__version__,`python -msetuptools_scm`," < setup.py-stubs > circuitpython-stubs/setup.py
272272
@cp README.rst-stubs circuitpython-stubs/README.rst
273273
@cp MANIFEST.in-stubs circuitpython-stubs/MANIFEST.in
274274
@$(PYTHON) tools/board_stubs/build_board_specific_stubs/board_stub_builder.py

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ Behavior
136136
- Adds a safe mode that does not run user code after a hard crash or brown out. This makes it
137137
possible to fix code that causes nasty crashes by making it available through mass storage after
138138
the crash. A reset (the button) is needed after it's fixed to get back into normal mode.
139+
- A 1 second delay is added to the boot process during which time the status LED will flash, and
140+
resetting the device or pressing the boot button will force the device into safe mode. This delay
141+
can be removed by a compile time option (``CIRCUITPY_SKIP_SAFE_MODE_WAIT``).
139142
- Safe mode may be handled programmatically by providing a ``safemode.py``.
140143
``safemode.py`` is run if the board has reset due to entering safe mode, unless the safe mode
141144
initiated by the user by pressing button(s).

conf.py

Lines changed: 16 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -174,74 +174,22 @@ def autoapi_prepare_jinja_env(jinja_env):
174174

175175
# List of patterns, relative to source directory, that match files and
176176
# directories to ignore when looking for source files.
177-
exclude_patterns = ["**/build*",
178-
".git",
179-
".github",
180-
".env",
181-
".venv",
182-
".direnv",
183-
".devcontainer/Readme.md",
184-
"circuitpython-stubs",
185-
"data",
186-
"docs/autoapi",
187-
"docs/README.md",
188-
"drivers",
189-
"examples",
190-
"extmod",
191-
"frozen",
192-
"lib",
193-
"main.c",
194-
"mpy-cross",
195-
"ports/*/*.c",
196-
"ports/*/*.h",
197-
"ports/*/boards",
198-
"ports/*/common-hal",
199-
"ports/*/supervisor",
200-
"ports/atmel-samd/asf4",
201-
"ports/atmel-samd/asf4_conf",
202-
"ports/atmel-samd/external_flash",
203-
"ports/atmel-samd/freetouch",
204-
"ports/atmel-samd/peripherals",
205-
"ports/atmel-samd/QTouch",
206-
"ports/atmel-samd/tools",
207-
"ports/broadcom/firmware",
208-
"ports/broadcom/peripherals",
209-
"ports/cxd56/mkspk",
210-
"ports/cxd56/spresense-exported-sdk",
211-
"ports/espressif/certificates",
212-
"ports/espressif/esp-idf",
213-
"ports/espressif/esp-camera",
214-
"ports/espressif/esp-protocols",
215-
"ports/espressif/.idf_tools",
216-
"ports/espressif/peripherals",
217-
"ports/litex/hw",
218-
"ports/minimal",
219-
"ports/mimxrt10xx/peripherals",
220-
"ports/mimxrt10xx/sdk",
221-
"ports/nordic/device",
222-
"ports/nordic/bluetooth",
223-
"ports/nordic/modules",
224-
"ports/nordic/nrfx",
225-
"ports/nordic/peripherals",
226-
"ports/nordic/usb",
227-
"ports/raspberrypi/sdk",
228-
"ports/raspberrypi/pioasm",
229-
"ports/raspberrypi/lib",
230-
"ports/silabs/gecko_sdk",
231-
"ports/silabs/tools",
232-
"ports/stm/st_driver",
233-
"ports/stm/packages",
234-
"ports/stm/peripherals",
235-
"ports/stm/ref",
236-
"py",
237-
"shared/*",
238-
"shared-bindings/util.*",
239-
"shared-module",
240-
"supervisor",
241-
"tests",
242-
"test-stubs",
243-
"tools",
244-
"circuitpython-stubs/README.rst"]
177+
include_patterns = [
178+
# Top directory documentation
179+
"*.rst",
180+
"*.md",
181+
182+
# Docs inherited from microypython (but not templates or README.md, see below)
183+
"docs/**",
184+
185+
# Module documentation
186+
"shared-bindings/**",
187+
"ports/*/bindings/**",
188+
189+
# Port READMEs in various formats
190+
"ports/*/README*",
191+
]
192+
exclude_patterns = ["docs/autoapi/templates/**", "docs/README.md"]
245193

246194
# The reST default role (used for this markup: `text`) to use for all
247195
# documents.

docs/environment.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ during power up at 1024x600 otherwise the display will be initialized at a resol
111111
of 800x480.
112112

113113
`Sunton ESP32-2432S028 <https://circuitpython.org/board/sunton_esp32_2432S028/>`_
114+
`Sunton ESP32-2432S024C <https://circuitpython.org/board/sunton_esp32_2432S024C/>`_
114115

115116
CIRCUITPY_DISPLAY_ROTATION
116117
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -119,3 +120,13 @@ If the CIRCUITPY_DISPLAY_ROTATION parameter is set the display will be initializ
119120
during power up with the selected rotation, otherwise the display will be initialized with
120121
a rotation of 0. Attempting to initialize the screen with a rotation other than 0,
121122
90, 180 or 270 is not supported and will result in an unexpected screen rotation.
123+
124+
`Sunton ESP32-8048S050 <https://circuitpython.org/board/sunton_esp32_8048S050/>`_
125+
126+
CIRCUITPY_DISPLAY_FREQUENCY
127+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
128+
Allows the entry of a display frequency used during the "dotclock" framebuffer construction.
129+
If a valid frequency is not defined the board will initialize the framebuffer with a
130+
frequency of 12500000hz (12.5Mhz). The value should be entered as an integer in hertz
131+
i.e. CIRCUITPY_DISPLAY_FREQUENCY=16000000 will override the default value with a 16Mhz
132+
display frequency.

locale/ID.po

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ msgstr "%q harus kelipatan 8."
230230
#: ports/raspberrypi/bindings/cyw43/__init__.c py/argcheck.c py/objexcept.c
231231
#: shared-bindings/bitmapfilter/__init__.c shared-bindings/canio/CAN.c
232232
#: shared-bindings/digitalio/Pull.c shared-bindings/supervisor/__init__.c
233-
#: shared-module/synthio/Synthesizer.c
233+
#: shared-module/synthio/Biquad.c shared-module/synthio/Synthesizer.c
234234
msgid "%q must be of type %q or %q, not %q"
235235
msgstr "%q harus bertipe %q atau %q, bukan %q"
236236

@@ -817,6 +817,10 @@ msgstr "Tidak dapat menentukan RTS atau CTS dalam mode RS485"
817817
msgid "Cannot subclass slice"
818818
msgstr "Tidak dapat membuat subkelas dari irisan"
819819

820+
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
821+
msgid "Cannot use GPIO0..15 together with GPIO32..47"
822+
msgstr ""
823+
820824
#: ports/nordic/common-hal/alarm/pin/PinAlarm.c
821825
msgid "Cannot wake on pin edge, only level"
822826
msgstr "Tidak dapat bangun di tepi pin, hanya level"
@@ -2362,6 +2366,7 @@ msgstr "Anda menekan kedua tombol saat memulai."
23622366
#: ports/espressif/boards/m5stack_core_fire/mpconfigboard.h
23632367
#: ports/espressif/boards/m5stack_stick_c/mpconfigboard.h
23642368
#: ports/espressif/boards/m5stack_stick_c_plus/mpconfigboard.h
2369+
#: ports/espressif/boards/m5stack_stick_c_plus2/mpconfigboard.h
23652370
msgid "You pressed button A at start up."
23662371
msgstr "Anda menekan tombol A saat memulai."
23672372

@@ -3434,10 +3439,6 @@ msgstr ""
34343439
msgid "label redefined"
34353440
msgstr "label didefinis ulang"
34363441

3437-
#: shared-bindings/audiomixer/MixerVoice.c
3438-
msgid "level must be between 0 and 1"
3439-
msgstr ""
3440-
34413442
#: py/objarray.c
34423443
msgid "lhs and rhs should be compatible"
34433444
msgstr ""

locale/circuitpython.pot

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ msgstr ""
218218
#: ports/raspberrypi/bindings/cyw43/__init__.c py/argcheck.c py/objexcept.c
219219
#: shared-bindings/bitmapfilter/__init__.c shared-bindings/canio/CAN.c
220220
#: shared-bindings/digitalio/Pull.c shared-bindings/supervisor/__init__.c
221-
#: shared-module/synthio/Synthesizer.c
221+
#: shared-module/synthio/Biquad.c shared-module/synthio/Synthesizer.c
222222
msgid "%q must be of type %q or %q, not %q"
223223
msgstr ""
224224

@@ -795,6 +795,10 @@ msgstr ""
795795
msgid "Cannot subclass slice"
796796
msgstr ""
797797

798+
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
799+
msgid "Cannot use GPIO0..15 together with GPIO32..47"
800+
msgstr ""
801+
798802
#: ports/nordic/common-hal/alarm/pin/PinAlarm.c
799803
msgid "Cannot wake on pin edge, only level"
800804
msgstr ""
@@ -2311,6 +2315,7 @@ msgstr ""
23112315
#: ports/espressif/boards/m5stack_core_fire/mpconfigboard.h
23122316
#: ports/espressif/boards/m5stack_stick_c/mpconfigboard.h
23132317
#: ports/espressif/boards/m5stack_stick_c_plus/mpconfigboard.h
2318+
#: ports/espressif/boards/m5stack_stick_c_plus2/mpconfigboard.h
23142319
msgid "You pressed button A at start up."
23152320
msgstr ""
23162321

@@ -3383,10 +3388,6 @@ msgstr ""
33833388
msgid "label redefined"
33843389
msgstr ""
33853390

3386-
#: shared-bindings/audiomixer/MixerVoice.c
3387-
msgid "level must be between 0 and 1"
3388-
msgstr ""
3389-
33903391
#: py/objarray.c
33913392
msgid "lhs and rhs should be compatible"
33923393
msgstr ""

locale/cs.po

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ msgstr ""
229229
#: ports/raspberrypi/bindings/cyw43/__init__.c py/argcheck.c py/objexcept.c
230230
#: shared-bindings/bitmapfilter/__init__.c shared-bindings/canio/CAN.c
231231
#: shared-bindings/digitalio/Pull.c shared-bindings/supervisor/__init__.c
232-
#: shared-module/synthio/Synthesizer.c
232+
#: shared-module/synthio/Biquad.c shared-module/synthio/Synthesizer.c
233233
msgid "%q must be of type %q or %q, not %q"
234234
msgstr "%q musí být typu %q nebo %q, ne %q"
235235

@@ -811,6 +811,10 @@ msgstr "Nelze určit RTS nebo CTS v režimu RS485"
811811
msgid "Cannot subclass slice"
812812
msgstr "Nelze použít řez podtřídy"
813813

814+
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
815+
msgid "Cannot use GPIO0..15 together with GPIO32..47"
816+
msgstr ""
817+
814818
#: ports/nordic/common-hal/alarm/pin/PinAlarm.c
815819
msgid "Cannot wake on pin edge, only level"
816820
msgstr "Nelze probudit hranou na pinu, pouze úrovní"
@@ -2342,6 +2346,7 @@ msgstr "Při spuštění jsi stiskl obě tlačítka."
23422346
#: ports/espressif/boards/m5stack_core_fire/mpconfigboard.h
23432347
#: ports/espressif/boards/m5stack_stick_c/mpconfigboard.h
23442348
#: ports/espressif/boards/m5stack_stick_c_plus/mpconfigboard.h
2349+
#: ports/espressif/boards/m5stack_stick_c_plus2/mpconfigboard.h
23452350
msgid "You pressed button A at start up."
23462351
msgstr "Při spuštění jsi stiskl tlačítko A."
23472352

@@ -3414,10 +3419,6 @@ msgstr ""
34143419
msgid "label redefined"
34153420
msgstr ""
34163421

3417-
#: shared-bindings/audiomixer/MixerVoice.c
3418-
msgid "level must be between 0 and 1"
3419-
msgstr ""
3420-
34213422
#: py/objarray.c
34223423
msgid "lhs and rhs should be compatible"
34233424
msgstr ""

0 commit comments

Comments
 (0)