int buzzerpin = 15;
void setup() {
// put your setup code here, to run once:
pinMode(buzzerpin, OUTPUT);
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
tone(buzzerpin,150);
delay(1000); // this speeds up the simulation
noTone(buzzerpin);
delay(1000);
tone(buzzerpin,150,1000);
delay(1000); // this speeds up the simulation
}