I'm currently making a project where I want to include a short bit of the Harry potter theme tune, roughly 10 seconds using a speaker, esp32 and an adafruit pam8302 class d amplifier.
I have done the wiring and all seems fine there.
I install Arduino IDE, did the updates for the software and it's default libraries.
Then I downloaded the XT_Dac library, and added it through Arduino "add zip file" under the sketch tab.
I then restarted Arduino and can see the library under "contributed libraries tab of the sketch drop down. However, I can't see it under the examples part of the file drop down.
I thought nothing of it but whilst trying to compile the "PlayWav" sketch with my adjusted parameters I keep getting errors and can't see to even get the examples to compile.
It seemed so simple but something has gone wrong and I'm lost as to what it is.
Hi @kirtingvert23. As mentioned by DaveX, the library author didn't put the example sketches in the location where Arduino IDE looks for them. This is why you don't see them listed in Arduino IDE's File > Examples menu.
However that Examples menu only makes it more convenient to open example sketches. As it seems you already noticed, you can still open the example sketches directly (either through File > Open... or file association). So the incorrect example sketch folder structure won't cause any problems with the functionality of the library itself.
We're happy to help you with that, but we'll need you to provide more information.
Which version of Arduino IDE are you using (e.g., "2.0.1")? The version is shown on the window title bar and also in the Help > About dialog.
I ask for this information because I want to give you the appropriate instructions for the IDE version you are using.