arduino stuffs
Diffstat (limited to 'mp3player/arduino/player.h')
-rw-r--r--mp3player/arduino/player.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/mp3player/arduino/player.h b/mp3player/arduino/player.h
deleted file mode 100644
index 6cf2957..0000000
--- a/mp3player/arduino/player.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef PLAYER_H
-#define PLAYER_H
-#include "DFRobotDFPlayerMini.h"
-#include "error.h"
-#include <SoftwareSerial.h>
-
-namespace Player {
-DFRobotDFPlayerMini p;
-SoftwareSerial s(10, 11); // RX, TX
-
-void begin() {
- Serial.println(F("init p"));
-
- s.begin(9600);
-
- if (!p.begin(s))
- Error err(F("init p fail"));
-
- Serial.println(F("p online."));
-
- p.volume(5); // Set volume value. From 0 to 30
- p.play(1); // Play the first mp3
- Serial.println(p.readFileCounts());
-}
-} // namespace Player
-#endif \ No newline at end of file