I want to create a circuit that plays audio when it gets power and play another audio by pressing a button. I want to create it without SD card, only using Arduino nano. Library used is PCM. Here is the code example..
#include <PCM.h>
const unsigned char sample[] PROGMEM = {
0,6,14,22,30,38,46,54,60,68,74,82,90,98,106,114,112,
};
void setup()
{
startPlayback(sample, sizeof(sample));
}
void loop()
{
}
I want to play another audio by pressing a press button, How can I do it? What will be the code ?
Aucun commentaire:
Enregistrer un commentaire