Help write a MicroPython library of ES8311 sensor. #15972
Replies: 2 comments 2 replies
-
You may see this for a reference: https://docs.firialabs.com/_modules/codec.html |
Beta Was this translation helpful? Give feedback.
-
ES8311 is an audio codec (ADC+DAC) and uses I2S for audio data. You should be able to use machine.I2S to communicate with it. There are many examples how to work with I2S in MicroPython at https://github.com/miketeachman/micropython-i2s-examples Note that the ES8311 codec may need some setup before it provides audio on the I2S bus of the format you want. This is done using I2C commands. |
Beta Was this translation helpful? Give feedback.
-
Description
Help write a MicroPython library of ES8311 sensor.
I hope it is a library that uses Python completely, and can play sound and read sound by microphone, because the speaker and microphone chip of ESP32P4 is ES8311. thank you
Code Size
As big as it can be, don't have too much flash space.
Implementation
I hope the MicroPython maintainers or community will implement this feature, I intend to implement this feature and would submit a Pull Request if desirable
Code of Conduct
Yes, I agree
Beta Was this translation helpful? Give feedback.
All reactions