Change tunes, configure connection

This commit is contained in:
2024-11-01 19:03:31 +01:00
parent ec6af93cfe
commit d3d74938d3
4 changed files with 27 additions and 11 deletions

View File

@ -2,14 +2,15 @@
#include <Arduino.h>
// Define melodies and their durations
int melody1[] = { 440, 523, 659, 587 }; // Happy tune
int melody1[] = { 440, 523, 659, 587 }; // Startup tune
int noteDuration1[] = { 100, 50, 100, 150 };
int melody2[] = { 587, 659, 740, 659 }; // Tune 2
int noteDuration2[] = { 150, 100, 150, 100 };
int melody2[] = { 740, 784, 659 }; // Happy Tune
int noteDuration2[] = { 120, 120, 120 };
int melody3[] = { 440, 349, 392 }; // Sad Tune
int noteDuration3[] = { 150, 100, 150 };
int melody3[] = { 440, 392 }; // Sad Tune
int noteDuration3[] = { 200, 150 };
// Function to play a specified tune
void playTune(int tuneIndex) {