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