#define TonePin 1
void setup() {
//initialisation du buzzer
pinMode(TonePin, OUTPUT);
}
void loop() {
tone(TonePin, 622);
delay(500);
tone(TonePin, 587);
delay(300);
tone(TonePin, 554);
delay(500); ?
for (byte i = 0; i < 10; i++) {
for (int pitch = -10; pitch <= 10; pitch++) {
tone(TonePin, 524 + pitch);
delay(5);
}
}
noTone(TonePin);
delay(3000);
}