contact_printer/ino/demos/esp32_neopixel/esp32_neopixel.ino

20 lines
301 B
Arduino
Raw Permalink Normal View History

2024-03-07 14:01:54 +00:00
#include <Adafruit_NeoPixel.h>
2024-03-18 00:49:22 +00:00
#define PIN 15
#define NUM 1
2024-03-07 14:01:54 +00:00
2024-10-09 06:03:07 +00:00
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUM, PIN, NEO_GRB + NEO_KHZ800);
2024-03-07 14:01:54 +00:00
void setup() {
Serial.begin(115200);
pixels.begin();
2024-10-09 06:03:07 +00:00
pixels.setBrightness(255);
pixels.fill(0xFF0000);
2024-03-07 14:01:54 +00:00
pixels.show();
}
void loop () {
2024-10-09 06:03:07 +00:00
pixels.show();
}