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.
Fork of Solenoc by
Diff: Solenoc.cpp
- Revision:
- 0:a50960b2f6bd
diff -r 000000000000 -r a50960b2f6bd Solenoc.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Solenoc.cpp Tue Dec 08 12:23:46 2015 +0000 @@ -0,0 +1,24 @@ +#include "Solenoc.h" + +DigitalOut myled(LED1); +DigitalOut SOL1(p25); + +int LENGTH_OF_SONG = 19; + +void playSong(Song thissong){ + + for(int i = 0; i < LENGTH_OF_SONG; i++){ + thissong.getNote(i); + thissong.getLength(i); + } +} + +int main() { + + Song newSong("./dummyFile.txt"); + + HardwareControl controller; + + playSong(newSong); + +} \ No newline at end of file