Skip to content

Commit 9c55311

Browse files
committed
[stm] implementation of audiopwmio
Based on nrf PWMAudioOut by @jepler and stm PulseOut by @hierophect Tested on a Meowbit
1 parent 550eab2 commit 9c55311

File tree

10 files changed

+448
-11
lines changed

10 files changed

+448
-11
lines changed

locale/circuitpython.pot

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ msgstr ""
7373
#: extmod/moductypes.c ports/atmel-samd/common-hal/pulseio/PulseIn.c
7474
#: ports/cxd56/common-hal/pulseio/PulseIn.c
7575
#: ports/nrf/common-hal/pulseio/PulseIn.c
76+
#: ports/raspberrypi/common-hal/pulseio/PulseIn.c
7677
#: ports/stm/common-hal/pulseio/PulseIn.c py/obj.c py/objstr.c
7778
#: py/objstrunicode.c
7879
msgid "%q index out of range"
@@ -406,6 +407,10 @@ msgstr ""
406407
msgid "AnalogOut not supported on given pin"
407408
msgstr ""
408409

410+
#: ports/stm/common-hal/audiopwmio/PWMAudioOut.c
411+
msgid "Another PWMAudioOut is already active"
412+
msgstr ""
413+
409414
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
410415
#: ports/cxd56/common-hal/pulseio/PulseOut.c
411416
msgid "Another send is already active"
@@ -520,6 +525,7 @@ msgid "Buffer is too small"
520525
msgstr ""
521526

522527
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
528+
#: ports/stm/common-hal/audiopwmio/PWMAudioOut.c
523529
#, c-format
524530
msgid "Buffer length %d too big. It must be less than %d"
525531
msgstr ""
@@ -962,6 +968,7 @@ msgstr ""
962968
#: ports/cxd56/common-hal/pulseio/PulseIn.c
963969
#: ports/esp32s2/common-hal/pulseio/PulseIn.c
964970
#: ports/nrf/common-hal/pulseio/PulseIn.c
971+
#: ports/raspberrypi/common-hal/pulseio/PulseIn.c
965972
#: ports/stm/common-hal/pulseio/PulseIn.c
966973
#, c-format
967974
msgid "Failed to allocate RX buffer of %d bytes"
@@ -975,6 +982,10 @@ msgstr ""
975982
msgid "Failed to allocate wifi scan memory"
976983
msgstr ""
977984

985+
#: ports/stm/common-hal/audiopwmio/PWMAudioOut.c
986+
msgid "Failed to buffer the sample"
987+
msgstr ""
988+
978989
#: ports/nrf/common-hal/_bleio/Adapter.c
979990
msgid "Failed to connect: internal error"
980991
msgstr ""
@@ -1247,7 +1258,7 @@ msgstr ""
12471258
msgid "Invalid format chunk size"
12481259
msgstr ""
12491260

1250-
#: ports/esp32s2/common-hal/pwmio/PWMOut.c
1261+
#: ports/esp32s2/common-hal/busio/I2C.c ports/esp32s2/common-hal/pwmio/PWMOut.c
12511262
msgid "Invalid frequency"
12521263
msgstr ""
12531264

@@ -2291,7 +2302,7 @@ msgstr ""
22912302
msgid "Unsupported format"
22922303
msgstr ""
22932304

2294-
#: py/moduerrno.c
2305+
#: ports/raspberrypi/common-hal/pulseio/PulseOut.c py/moduerrno.c
22952306
msgid "Unsupported operation"
22962307
msgstr ""
22972308

@@ -3699,6 +3710,7 @@ msgstr ""
36993710
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
37003711
#: ports/cxd56/common-hal/pulseio/PulseIn.c
37013712
#: ports/nrf/common-hal/pulseio/PulseIn.c
3713+
#: ports/raspberrypi/common-hal/pulseio/PulseIn.c
37023714
#: ports/stm/common-hal/pulseio/PulseIn.c py/objdict.c py/objlist.c py/objset.c
37033715
#: shared-bindings/ps2io/Ps2.c
37043716
msgid "pop from empty %q"
@@ -3724,6 +3736,8 @@ msgstr ""
37243736
#: ports/esp32s2/boards/espressif_kaluga_1/mpconfigboard.h
37253737
#: ports/esp32s2/boards/espressif_saola_1_wroom/mpconfigboard.h
37263738
#: ports/esp32s2/boards/espressif_saola_1_wrover/mpconfigboard.h
3739+
#: ports/esp32s2/boards/franzininho_wifi_wroom/mpconfigboard.h
3740+
#: ports/esp32s2/boards/franzininho_wifi_wrover/mpconfigboard.h
37273741
#: ports/esp32s2/boards/lilygo_ttgo_t8_s2_st7789/mpconfigboard.h
37283742
#: ports/esp32s2/boards/microdev_micro_s2/mpconfigboard.h
37293743
#: ports/esp32s2/boards/muselab_nanoesp32_s2/mpconfigboard.h

0 commit comments

Comments
 (0)