Tutorial: Hello LED (EduESP32-S3)
Blink the on-board LED (or WS2812) of the ESP32-S3 with Arduino.
Requirements
- EduESP32-S3
- Arduino IDE 2.x with the esp32 by Espressif Systems core
- USB-C cable
Code (plain LED)
#define LED_PIN 2 // adjust to your on-board LED GPIO
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH);
delay(500);
digitalWrite(LED_PIN, LOW);
delay(500);
}
WS2812 RGB LED variant
#include <Adafruit_NeoPixel.h>
#define PIN 48
Adafruit_NeoPixel pixel(1, PIN, NEO_GRB + NEO_KHZ800);
void setup() { pixel.begin(); pixel.setBrightness(40); }
void loop() {
pixel.setPixelColor(0, pixel.Color(255, 0, 0)); pixel.show(); delay(400);
pixel.setPixelColor(0, pixel.Color(0, 255, 0)); pixel.show(); delay(400);
pixel.setPixelColor(0, pixel.Color(0, 0, 255)); pixel.show(); delay(400);
}
Upload and test
- Select board ESP32S3 Dev Module and the right serial port.
- Hit Upload.
- The LED should blink or cycle colors.
Next step
Move on to Tutorial: Hello UART or jump straight to Hello Wi-Fi.