How to make a happy birthday song tune using Tinkercad || Arduino projects using Tinkercad || DP (CODE)
CIRCUIT CODE int speakerPin = 10; int length = 28; // the number of notes char notes[] = "GGAGcB GGAGdc GGxecBA yyecdc"; int beats[] = { 2, 2, 8, 8, 8, 16, 1, 2, 2, 8, 8,8, 16, 1, 2,2,8,8,8,8,16, 1,2,2,8,8,8,16 }; int tempo = 150; void playTone(int tone, int duration) { for (long i = 0; i < dura...