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:
- 31:cfdb014ff086
- Parent:
- 30:08cc4ec58d07
- Child:
- 33:e7635c8a58a8
--- a/Sound/Sound.h Tue May 26 10:17:47 2020 +0000 +++ b/Sound/Sound.h Tue May 26 14:21:36 2020 +0000 @@ -31,18 +31,16 @@ * @ (Self itterates) */ uint16_t sound_main(bool initial, int waveform, int frequency); //runs main sound function - + + /**Iterator function. +* @Itterates through wavetable values. +* @Outputs Next i value for sound_main function. +*/ +uint16_t wavetable_itt(uint16_t i, int frequency); //itterates wavetable private: //--------------------------------------------------------------------- //Variables uint16_t i; //itterator as an uint double i_d; //itterator as a double - -//Functions -/**Iterator function. -* @Itterates through wavetable values. -* @Outputs Next i value for sound_main function. -*/ -uint16_t wavetable_itt(uint16_t i, int frequency); //itterates wavetable }; #endif \ No newline at end of file