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.
Solenoc.cpp
- Committer:
- kevinrhyne
- Date:
- 2015-12-08
- Revision:
- 0:a50960b2f6bd
File content as of revision 0:a50960b2f6bd:
#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);
}