15 lines
205 B
Arduino
15 lines
205 B
Arduino
|
// Buzzer
|
||
|
int buzzerPin = 8;
|
||
|
int time = 100;
|
||
|
|
||
|
void setup() {
|
||
|
pinMode(buzzerPin, OUTPUT);
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
digitalWrite(buzzerPin, HIGH);
|
||
|
delay(time);
|
||
|
digitalWrite(buzzerPin, LOW);
|
||
|
delay(time);
|
||
|
}
|