tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
584 stars 180 forks source link

Using the microphone on Arduino Nano RP2040 Connect #666

Open vishal-android-freak opened 3 months ago

vishal-android-freak commented 3 months ago

Is there any example to use the MP34DT06JTR microphone on Arduino Nano RP2040 Connect? Currently, the microphone driver supports communication over I2S. How can I use it with RP2040 or is there any other way?

deadprogram commented 1 month ago

@vishal-android-freak this will require adding I2S support to rp2040 in TinyGo itself.

vishal-android-freak commented 1 month ago

Damn! Is there a blueprint I can refer to and try to write something around it?

deadprogram commented 1 month ago

Support for i2s on rp2040 requires pio coding.

Please see https://github.com/tinygo-org/pio about where to add such a thing using TinyGo.