some stuff

This commit is contained in:
2022-01-28 14:00:31 -06:00
parent d94c63a964
commit 8dc484e0d1
49 changed files with 3511 additions and 664 deletions

View File

@@ -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++;
}
}