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: Sound/Sound.h
- Revision:
- 14:9cfe0041cc4e
- Child:
- 22:028f1627c262
--- /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