Is I2S supported on the NodeMCU ESP8266 board?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
zachmoshe
Posts: 6
Joined: Fri Jun 24, 2022 8:28 am

Is I2S supported on the NodeMCU ESP8266 board?

Post by zachmoshe » Sat Jul 23, 2022 11:06 am

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

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Is I2S supported on the NodeMCU ESP8266 board?

Post by Roberthh » Sat Jul 23, 2022 11:18 am

I2S is not supported on the ESP8266 port. The hardware seems capable of I2S, but no-one has written the driver.

zachmoshe
Posts: 6
Joined: Fri Jun 24, 2022 8:28 am

Re: Is I2S supported on the NodeMCU ESP8266 board?

Post by zachmoshe » Sat Jul 23, 2022 1:45 pm

oh.. :(
Do I have any other options to play audio with the ESP8266?

Post Reply