Open madias123 opened 1 year ago
I'm not sure if it's related but on the rp2040 pico (no wifi) I had the driver not intializing consistently with some sketches.
I added (line 122) do VS1053Driver.cpp:
111 bool VS1053::testComm(const char *header) {
112 // Test the communication with the VS1053 module. The result will be returned.
113 // If DREQ is low, there is problably no VS1053 connected. Pull the line HIGH
114 // in order to prevent an endless loop waiting for this signal. The rest of the
115 // software will still work, but readbacks from VS1053 will fail.
116 int i; // Loop control
117 uint16_t r1, r2, cnt = 0;
118 uint16_t delta = 300; // 3 for fast SPI
119 delay(300);
120 VS1053_LOGW("is dreq there?");
121
122 data_mode_on();
It's a bit odd. I'm using configs with the audio-tools from the same author and used his recommended (?) pins:
#define VS1053_CS 17
#define VS1053_DCS 9
#define VS1053_DREQ 10
These bein the rest
#define VS_XCS 17 // 6 Control Chip Select Pin (for accessing SPI Control/Status registers)
#define VS_XDCS 9 // 7 Data Chip Select / BSYNC Pin
#define VS_DREQ 10 // 9 Data Request Pin: Player asks for more data
#define VS_RESET 11 // 8 Reset is active low
VS1053 player(VS1053_CS, VS1053_DCS, VS1053_DREQ, VS_RESET, SPI);
Hello, sadly the library seems to be broken on the RP2040 architecture: While the midi demo works, the mp3 demo plays the sample only one time, the second time a short click and then silence. The serial output works, so there is no freeze. Maybe the MP3playerDemo is broken on other architectures also? Have no ESP32 right here to check it out.
used core: https://github.com/earlephilhower/arduino-pico
working reference: https://github.com/episource/ESP_VS1053_Library
used modul: VS1053B (red breakout board)
I modified the main loop with complete reinitialize the modul: hard reset and spi end/begin, without success: sample played one time, then a short "click" and nothing.