Page 1 of 1

Is I2S supported on the NodeMCU ESP8266 board?

Posted: Sat Jul 23, 2022 11:06 am
by zachmoshe
Hi,
I have a NodeMCU board, and I'm trying to play sounds with I2S (through a MAX95357 DAC).
I was able to connect it to a rpi-pico and use machine.I2S class to play WAV files (using similar code to this: https://github.com/miketeachman/micropy ... ay_tone.py).
However, when I'm trying a similar approach with the NodeMCU I can't even find the class `machine.I2S`..
I'm using micropython 1.19.1 from here: https://micropython.org/download/esp8266/, seems like the correct one but maybe it isn't?

From browsing a bit in esp8266 forums it seems that the NodeMCU should support I2S. Why don't I see the class in the `machine` module?
I also had a similar problem with the 'SDCard' class, but there I could at least take the code from the drivers folder.

Any help would be appreciated!
Thanks,
Zach

Re: Is I2S supported on the NodeMCU ESP8266 board?

Posted: Sat Jul 23, 2022 11:18 am
by Roberthh
I2S is not supported on the ESP8266 port. The hardware seems capable of I2S, but no-one has written the driver.

Re: Is I2S supported on the NodeMCU ESP8266 board?

Posted: Sat Jul 23, 2022 1:45 pm
by zachmoshe
oh.. :(
Do I have any other options to play audio with the ESP8266?