ESP IDF 6.0 compat, update I2S, DAC, ULP (#783)
Move to the new I2S driver for the ESP chips, since the next revisioncl of the IDF will remove them completely. Make the I2S constructors saner and add consistent SetPinout() and SetBuffers calls to allow configuration. Remove need for separate UseMCLK or SwapClocks calls, we can figure that out from the pins selected. Fixes #758
This commit is contained in:
1 parent
058e131b26
commit
e0143bbf37
11 files changed
+316
-358
No files matched your search
@@ -42,12 +42,8 @@ void setup() {
|
||||
|
||||
audioLogger = &Serial;
|
||||
file = new AudioFileSourceLittleFS("/gs-16b-2c-44100hz.opus");
|
||||
#ifdef ARDUINO_ARCH_RP2040
|
||||
out = new AudioOutputI2S(48000, 26, 22);
|
||||
#else
|
||||
out = new AudioOutputI2S();
|
||||
// out->SetPinout(0, 1, 2); // Set the pinout if needed
|
||||
#endif
|
||||
opus = new AudioGeneratorOpus();
|
||||
opus->begin(file, out);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user