Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions locale/circuitpython.pot
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@ msgstr ""
msgid "%q must be 1 when %q is True"
msgstr ""

#: ports/raspberrypi/common-hal/audioi2sin/I2SIn.c
msgid "%q must be 16, 24, or 32"
msgstr ""

#: ports/espressif/common-hal/audiobusio/PDMIn.c
#: shared-bindings/audioi2sin/I2SIn.c
msgid "%q must be 8, 16, 24, or 32"
msgstr ""

#: py/argcheck.c shared-bindings/gifio/GifWriter.c
#: shared-module/gifio/OnDiskGif.c
msgid "%q must be <= %d"
Expand Down Expand Up @@ -660,6 +669,7 @@ msgid "Below minimum frame rate"
msgstr ""

#: ports/raspberrypi/common-hal/audiobusio/I2SOut.c
#: ports/raspberrypi/common-hal/audioi2sin/I2SIn.c
msgid "Bit clock and word select must be sequential GPIO pins"
msgstr ""

Expand Down Expand Up @@ -804,7 +814,7 @@ msgstr ""
msgid "Cannot pull on input-only pin."
msgstr ""

#: shared-bindings/audiobusio/PDMIn.c
#: shared-bindings/audiobusio/PDMIn.c shared-bindings/audioi2sin/I2SIn.c
msgid "Cannot record to a file"
msgstr ""

Expand Down Expand Up @@ -926,7 +936,7 @@ msgstr ""
msgid "Deep sleep pins must use a rising edge with pulldown"
msgstr ""

#: shared-bindings/audiobusio/PDMIn.c
#: shared-bindings/audiobusio/PDMIn.c shared-bindings/audioi2sin/I2SIn.c
msgid "Destination capacity is smaller than destination_length."
msgstr ""

Expand Down Expand Up @@ -1807,6 +1817,7 @@ msgid "Parameter error"
msgstr ""

#: ports/espressif/common-hal/audiobusio/__init__.c
#: ports/espressif/common-hal/audioi2sin/I2SIn.c
msgid "Peripheral in use"
msgstr ""

Expand Down Expand Up @@ -2696,10 +2707,6 @@ msgstr ""
msgid "binary op %q not implemented"
msgstr ""

#: ports/espressif/common-hal/audiobusio/PDMIn.c
msgid "bit_depth must be 8, 16, 24, or 32."
msgstr ""

#: shared-module/bitmapfilter/__init__.c
msgid "bitmap size and depth must match"
msgstr ""
Expand Down Expand Up @@ -3510,6 +3517,11 @@ msgstr ""
msgid "invalid cert"
msgstr ""

#: shared-bindings/audioi2sin/I2SIn.c
#, c-format
msgid "invalid destination buffer, must be an array of type: %c"
msgstr ""

#: shared-bindings/bitmaptools/__init__.c
#, c-format
msgid "invalid element size %d for bits_per_pixel %d\n"
Expand Down
4 changes: 4 additions & 0 deletions ports/espressif/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ ifneq ($(CIRCUITPY_AUDIOBUSIO),0)
CHIP_COMPONENTS += esp_driver_i2s
endif

ifneq ($(CIRCUITPY_AUDIOI2SIN),0)
CHIP_COMPONENTS += esp_driver_i2s
endif

ifneq ($(CIRCUITPY_BLEIO_NATIVE),0)
SRC_C += common-hal/_bleio/ble_events.c
endif
Expand Down
4 changes: 4 additions & 0 deletions ports/espressif/boards/adafruit_sparkle_motion/pins.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_SIG4), MP_ROM_PTR(&pin_GPIO23) },
{ MP_ROM_QSTR(MP_QSTR_D23), MP_ROM_PTR(&pin_GPIO23) },

{ MP_ROM_QSTR(MP_QSTR_D25), MP_ROM_PTR(&pin_GPIO25) },
{ MP_ROM_QSTR(MP_QSTR_D26), MP_ROM_PTR(&pin_GPIO26) },
{ MP_ROM_QSTR(MP_QSTR_D33), MP_ROM_PTR(&pin_GPIO33) },

{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO9) },
{ MP_ROM_QSTR(MP_QSTR_D9), MP_ROM_PTR(&pin_GPIO9) },

Expand Down
2 changes: 1 addition & 1 deletion ports/espressif/common-hal/audiobusio/PDMIn.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void common_hal_audiobusio_pdmin_construct(audiobusio_pdmin_obj_t *self,
&& bit_depth != I2S_DATA_BIT_WIDTH_16BIT
&& bit_depth != I2S_DATA_BIT_WIDTH_24BIT
&& bit_depth != I2S_DATA_BIT_WIDTH_32BIT) {
mp_raise_ValueError(MP_ERROR_TEXT("bit_depth must be 8, 16, 24, or 32."));
mp_raise_ValueError_varg(MP_ERROR_TEXT("%q must be 8, 16, 24, or 32"), MP_QSTR_bit_depth);
}

i2s_chan_config_t chanConfig = I2S_CHANNEL_DEFAULT_CONFIG(I2S_NUM_0, I2S_ROLE_MASTER);
Expand Down
Loading
Loading