Skip to content

Commit 8eabbde

Browse files
committed
faster two beep moved to setup
1 parent 5a8b3a7 commit 8eabbde

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

examples/Example_01_Buzz/Example_01_Buzz.ino

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,25 @@ void setup() {
3434
while (1);
3535
}
3636
Serial.println("Buzzer acknowledged.");
37-
}
3837

39-
void loop() {
4038
buzzer.on(2730);
4139

42-
delay(1000);
40+
delay(100);
4341

4442
buzzer.off();
4543

46-
delay(1000);
44+
delay(100);
4745

4846
buzzer.on(1000);
4947

50-
delay(1000);
48+
delay(100);
5149

5250
buzzer.off();
5351

54-
delay(1000);
52+
delay(100);
53+
54+
}
55+
56+
void loop() {
57+
5558
}

0 commit comments

Comments
 (0)