Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
14:9cfe0041cc4e
Child:
22:028f1627c262
diff -r 27300c533dd1 -r 9cfe0041cc4e Sound/Sound.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sound/Sound.h	Tue May 19 15:04:33 2020 +0000
@@ -0,0 +1,34 @@
+#ifndef SOUND_H
+#define SOUND_H
+
+#include "mbed.h"
+//#include "LUTs.h"
+
+
+class Sound
+{
+public: //----------------------------------------------------------------------
+//Constructor/Destructor
+    Sound();
+    
+    ~Sound();
+    
+//Variables
+int waveform;
+int frequency;
+    
+//Functions
+ uint16_t sound_main(bool initial, int waveform, int frequency); //runs main sound function
+
+
+private: //---------------------------------------------------------------------
+//Variables
+uint16_t i;
+double i_d;
+
+
+
+//Functions
+uint16_t wavetable_itt(uint16_t i, int frequency); //itterates wavetable
+};
+#endif
\ No newline at end of file