This is an easy how-to make a mini-piano using Arduino, including a preset song!
Project in progress by ExeCuteLi
You can create a subtab called pitches.h and copy and paste the codes there.
Alternatively, you can just copy the content of pitches.h and paste it below the main code. This way you don't have to #include pitches.h and the notes will be defined.
What does the compilation error say?
If there is no compilation error, double check if the wires are in the right spot.
Mhm that is odd. Maybe send me a private message with your code?
Or connect with your social account:
New here? Create an account