Commit c65f08f9 authored by Patrick Fenner's avatar Patrick Fenner

and countdown test

parent 73cc1a75
#include <SoftwareSerial.h>
#include <SOMO_II.h>
// set up a new serial object
SoftwareSerial mySerial = SoftwareSerial(8, 9);
SOMO_II mp3 = SOMO_II(mySerial);
void setup() {
mySerial.begin(9600);
mp3.begin();
Serial.begin(9600);
Serial.println(F("starting play_test"));
}
void loop() {
Serial.println(F("playing countdown"));
mp3.playFile(1,5);
delay(1000);
mp3.playFile(1,4);
delay(1000);
mp3.playFile(1,3);
delay(1000);
mp3.playFile(1,2);
delay(1000);
mp3.playFile(1,1);
delay(1000);
mp3.playFile(1,6);
delay(1000);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment