void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S2!");
pinMode(12,OUTPUT);
pinMode(13,OUTPUT);
pinMode(14,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(12, HIGH);
digitalWrite(13, LOW);
digitalWrite(14, LOW);
// Wait for 1 second
delay(1000);
// Turn on LED2 and turn off the other LEDs
digitalWrite(12, LOW);
digitalWrite(13, HIGH);
digitalWrite(14, LOW);
// Wait for 1 second
delay(1000);
// Turn on LED3 and turn off the other LEDs
digitalWrite(12, LOW);
digitalWrite(13, LOW);
digitalWrite(14, HIGH);
// Wait for 1 second
delay(1000);
}
Loading
esp32-s2-devkitm-1
esp32-s2-devkitm-1