#define pinBuzzer 8
void setup() {
// put your setup code here, to run once:
pinMode(pinBuzzer, OUTPUT);
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
//tone(pinBuzzer, 200);
//delay(1000);
//noTone(pinBuzzer);
//delay(1000);
tone(pinBuzzer, 250, 1000);
delay(2000);
Serial.println("Buzzer Aktif");
}