Closed pdurys closed 1 year ago
I see you are using arduino-esp32.git#2.0.5? I had trouble with that rev with some boards! The latest is: https://github.com/espressif/arduino-esp32#2.0.6 cheers, Terry
Unfortunately 2.0.6 is nothing better in this case. I guess you have that board. Could you check if you have the same effect? cheers, pdurys
Sorry! I use Arduino IDE V2.0.3 and as you say, it works.
Update. I have managed to edit original factory example, adding Audio library etc. It works nicely without problem.
But, there is always catch somewhere.
I have had an idea to copy all src files from Arduino project tree to PlatformIO tree. So far so good. And problem has return.
This mean I have used exactly the same source files from modified script which correctly compiles and uploads inside PIO located inside original Arduino tree, but when open folder in PIO located within PIO tree and use those files, I have the same problem as before. GPIO0 seems to be always LOW. It must be something with either lvgl library included in LilyGo T-Display-S3 repository vs library from PIO or something else.
I think I have found explanation with this reported Issue: https://github.com/schreibfaul1/ESP32-audioI2S/issues/408#issue-1438366058
audioI2S library was setting GPIO0 for MCLK by default. Latest library version seems to resolve it.
I have very simple sketch having only 2 external libraries (see my platforio.ini file)
It simply create Audio object but even do not play stream. Another bit of sketch is simple monitor and Serial.println() events when onboard buttons at GPIO 0 and 14 are pressed, double click or longpressed. See below.
When I execute this there is constant
event. Of course you can see also
at the begin but later there is only Button 1 longPress. Like it would be on GPIO constant LOW signal.
This problem exists while building on platformio, when doing exactly the same on Arduino IDE all is just fine.