17 261, 261, 392, 392, 440, 440, 392,
18 349, 349, 329, 329, 294, 294, 261,
19 392, 392, 349, 349, 329, 329, 294,
20 392, 392, 349, 349, 329, 329, 294,
21 261, 261, 392, 392, 440, 440, 392,
22 349, 349, 329, 329, 294, 294, 261
40 330, 294, 262, 294, 330, 330, 330,
41 294, 294, 294, 330, 392, 392,
42 330, 294, 262, 294, 330, 330, 330,
43 330, 294, 294, 330, 294, 262
59 262, 349, 349, 349, 349, 440, 262, 440, 349, 0,
60 392, 392, 392, 330, 294, 262,
61 262, 349, 349, 349, 349, 440, 262, 440, 349, 0,
68 4, 4, 8, 8, 4, 4, 4, 4, 4, 4,
70 4, 4, 8, 8, 4, 4, 4, 4, 2, 4,
82void playNotes(
int buzzerPin,
int notes[],
int durations[],
int length) {
84 for (
int thisNote = 0; thisNote < length; thisNote++) {
85 int noteDuration = 1000 / durations[thisNote];
86 tone(buzzerPin, notes[thisNote]);
87 vTaskDelay(noteDuration / portTICK_PERIOD_MS);
89 vTaskDelay(200 / portTICK_PERIOD_MS);
void playNotes(int buzzerPin, int notes[], int durations[], int length)
Plays each note for a given song.
Definition Songs.h:82
void playSong(int buzzerPin, int songNum)
Plays the song associated with the given song number using the provided buzzer pin.
Definition Songs.h:99