int BUZZER_PIN = 26;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(BUZZER_PIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
for(int i=1;i<=100;i++)
{
digitalWrite(BUZZER_PIN, HIGH);
delay(2);
digitalWrite(BUZZER_PIN,LOW);
delay(2);
}
delay(100);
}