#include <Adafruit_NeoPixel.h>
#define PIN 2
#define LEDS 1
Adafruit_NeoPixel pixel(LEDS, PIN, NEO_GRB+NEO_KHZ800);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-C3!");
pixel.begin();
pixel.clear();
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
pixel.setPixelColor(0, 0xFF0000);
pixel.show();
delay(500);
pixel.setPixelColor(0, 0);
pixel.show();
delay(500);
}
Loading
esp32-c3-devkitm-1
esp32-c3-devkitm-1