Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Music/Music.h
- 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