void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(5, OUTPUT);
pinMode(18, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(5, HIGH);
digitalWrite(18, HIGH);
tone(5, 100);
delay(500); // this speeds up the simulation
digitalWrite(5, LOW);
digitalWrite(18, LOW);
noTone(5);
delay(1000);
}