How can I enable i2s support #10307
Answered
by
jgpeiro
lihuate
asked this question in
STM32 / Pyboard
-
I want to connect (i2s), but I won't configure it. Please tell me how mpconfigboard should be configured 😂(‾◡◝)。, |
Beta Was this translation helpful? Give feedback.
Answered by
jgpeiro
Dec 23, 2022
Replies: 3 comments 3 replies
-
I2S is supported out of the box on a Pyboard. Just ensure you have recent firmware. On a Pyboard 1.1: >>> import machine
>>> dir(machine)
['__class__', '__name__', '__dict__', 'RTC', 'ADC', 'DEEPSLEEP_RESET', 'HARD_RESET', 'I2C', 'I2S', 'PWRON_RESET', 'Pin', 'SOFT_RESET', 'SPI', 'Signal', 'SoftI2C', 'SoftSPI', 'Timer', 'UART', 'WDT', 'WDT_RESET', 'bitstream', 'bootloader', 'deepsleep', 'disable_irq', 'enable_irq', 'freq', 'idle', 'info', 'lightsleep', 'mem16', 'mem32', 'mem8', 'reset', 'reset_cause', 'rng', 'sleep', 'soft_reset', 'time_pulse_us', 'unique_id'] |
Beta Was this translation helpful? Give feedback.
2 replies
-
The poster uses a different board. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think you should simply add something like this in your f429 mpconfigboard.h: // I2S buses
#define MICROPY_HW_I2S1 (1)
#define MICROPY_HW_I2S2 (1)
#define MICROPY_HW_I2S3 (1) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lihuate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you should simply add something like this in your f429 mpconfigboard.h: