Libraries competing for I2S? #734
Unanswered
renatoianhez
asked this question in
Q&A
Replies: 2 comments
-
That may be, in V3 there is a handle on I2S. A double initialisation could lead to an error. You can create an audioI2S object as a reference. Audio* audio = new(Audio);
audio->setPinout(1,2,3);
audio->connecttoFS(SD_MMC, "/mySong.mp3");
....
delete audio;
....
BT* bt = new(BT); You can destroy the object and thus release I2S. You can then create a Bluetooth object. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh! Thank you! I will test something similar! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the new version of the ESP32-Arduino IDE, there was a change in the I2S API, and consequently some libraries were affected. One of them that I use is pschatzmann's Bluetooth A2DP. On this version of my webradio I use it to transform it into a bluetooth receiver speaker. However, updating that library seems to conflict with your ESP32-audioI2S library, since, even in exclusive programming blocks, the Bluetooth library does not work. However, the A2DP works in an example sketch. Is there a "competition" for I2S in this case?
Beta Was this translation helpful? Give feedback.
All reactions