Open Gustavomurta opened 2 years ago
The only way to discover the pins on the Raspberry Pico dedicated to the I2S interface in this project was using an oscilloscope.
Audio output (Stereo) = 375 Hz 3,1 V pp
Finally, i found:
_src/rp2_common/pico_audio_i2s/include/pico/audioi2s.h
#ifndef PICO_AUDIO_I2S_DATA_PIN
//#warning PICO_AUDIO_I2S_DATA_PIN should be defined when using AUDIO_I2S
#define PICO_AUDIO_I2S_DATA_PIN 28
#endif
#ifndef PICO_AUDIO_I2S_CLOCK_PIN_BASE
//#warning PICO_AUDIO_I2S_CLOCK_PIN_BASE should be defined when using AUDIO_I2S
#define PICO_AUDIO_I2S_CLOCK_PIN_BASE 26
#endif
I think it is impossible to test this I2S audio application with these pins configurations:
_https://github.com/raspberrypi/pico-playground/tree/master/audio/sine_wave_
audio/sine_wave/CMakeLists.txt
/audio/sine_wave/sine_wave.c
OK = PICO_AUDIO_I2S_DATA_PIN, "I2S DIN" = GPIO22 Not acessible = PICO_AUDIO_I2S_CLOCK_PIN_BASE, "I2S BCK" = GPIO23 Not acessible = PICO_AUDIO_I2S_CLOCK_PIN_BASE+1, "I2S LRCK" = GPIO24
Thanks