Professional Documents
Culture Documents
Plays a melody
circuit:
https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMelody
*/
#include "pitches.h"
int melody[] = {
};
int noteDurations[] = {
4, 8, 8, 4, 4, 4, 4, 4
};
void setup() {
// to calculate the note duration, take one second divided by the note type.
noTone(8);
void loop() {