// ESP32-S2-DevKitM-1 RGB LED Example
// https://wokwi.com/projects/329538969192628819
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel pixel(1, 18, NEO_GRB + NEO_KHZ800);
void setup() {
Serial.begin(115200);
Serial.println("Hello, ESP32-S2!");
pixel.begin();
}
void loop() {
pixel.setPixelColor(0, pixel.Color(150, 0, 0));
pixel.show();
delay(500);
pixel.setPixelColor(0, pixel.Color(0, 150, 0));
pixel.show();
delay(500);
pixel.setPixelColor(0, pixel.Color(150, 0, 150));
pixel.show();
delay(500);
}