rger

Dependencies:   mbed

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);
    
}