some stuff
This commit is contained in:
@@ -67,11 +67,12 @@ void play_note(Note noteToPlay) {
|
||||
*TIM3_CR1 &= ~1;
|
||||
}
|
||||
|
||||
|
||||
void play_song(Note *song){
|
||||
void play_song(Note *songToPlay){
|
||||
int i = 0;
|
||||
while(song[i].noteFrequency != T){
|
||||
play_note(song[i]);
|
||||
// double freq = songToPlay[i].noteFrequency;
|
||||
// Note newNote = {songToPlay[i].noteFrequency, songToPlay[i].noteDuration };
|
||||
while(songToPlay[i].noteFrequency != T) {
|
||||
play_note(songToPlay[i]);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user