Output with ESP32-LyratT v4.3 requires PIN_FUNC_SELECT and WRITE_PERI_REG code #805
-
Hi Phil, First, great job on the library! Makes it SO much easier to develop audio apps with the ESP32. Anyway, I have run into an odd problem with my ESP32-LyraT where I must add the following code after the out.begin(config) to get output from my board using AudioTools:
How I was able to track this down is that everything worked fine when testing with the AudioKit Sine generator example, but when I attempted the same thing with the AudioTools version no output. I suspected it might be a clock issue and found these two lines in the I2S AudioKit code. When I added these lines directly into the AudioTools .ino code just after out.begin(config), everything worked. Here is the snippet from my working code: // start I2S Any ideas? Aaron |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
If you use a very old ESP32 version this code is also called automatically, but this is an obsolete way to define the master clock! How can I reproduce your issue ? |
Beta Was this translation helpful? Give feedback.
If you use a very old ESP32 version this code is also called automatically, but this is an obsolete way to define the master clock!
In any new version this is identical with defining the config.pin_mck = 0;
You should be able to check in the log if this is set correctly...
How can I reproduce your issue ?