Skip to content

atomic14/micropython-i2s-esp32-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ko-fi

MicroPython and I2S Audio on the ESP32

A quick demo of this PR that adds support for I2S to MicroPython.

You can watch a video of this in action here

Demo Video

I2S is not yet officially supported, but there is a Pull Request on GitHub that adds it in.

We can build a custom version of Micropython pretty easily. We just need the ESP-IDF from here: https://github.com/espressif/esp-idf.

And then we can get a copy of Micropython from here: https://github.com/micropython/micropython and merge in the pull request with I2S support: micropython/micropython#7183

The full commands to set up the IDF are:

git clone -b v4.2 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh
. export.sh

And then to build our custom version of Micropython:

git clone git@github.com:micropython/micropython.git
cd micropython
git fetch origin pull/7183/head:i2s_support
git merge i2s_support
make -C mpy-cross
cd ports/esp32
make submodules
make BOARD=UM_TINYPICO

You can find a bunch of sample code here for the I2S pull request: https://github.com/miketeachman/micropython-i2s-examples

About

A simple example showing how to use MicroPython with I2S on the ESP32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published