#define LED 20
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S2!");
pinMode(LED, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED, HIGH);
delay(1000); // this speeds up the simulation
digitalWrite(LED, LOW);
delay(1000);
}
//method 2 works only for arduino
// void setup() {
// pinMode(LED_BUILTIN, OUTPUT);
// }
// void loop() {
// digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
// delay(1000);
// }