Josh Davy / Mbed OS MUSIC_K64F
Revision:
0:d7214673ab2d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Music/Music.h	Mon Jul 22 14:45:38 2019 +0000
@@ -0,0 +1,37 @@
+#ifndef MUSIC_H
+#define MUSIC_H
+
+/*Music Class*/
+#include "mbed.h"
+
+
+/** Music Class
+
+@brief The Music Class handles the playing of the background music while playing
+the game. It uses the buzzer with PWM audio to play complex waveforms through
+a standard 5V pin of the board. See presentation for more detail how this works.
+@version 1.0
+
+@author Joshua Davy el17jd
+
+@date April 2019
+
+*/
+
+class Music {
+
+public:
+    Music();
+    ~Music();
+    void init(const int* data,int length);
+    void play_next();
+
+    
+private:
+    const int*  _data;
+    int _index;
+    int _length;
+    
+
+};
+#endif
\ No newline at end of file