Add neopixel example

This commit is contained in:
Matt McWilliams 2024-03-07 09:01:54 -05:00
parent 147e39d5d1
commit 65ca7e882f
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#include <Adafruit_NeoPixel.h>
#define PIN 15
#define NUM 6
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUM, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
Serial.begin(115200);
pixels.begin();
pixels.setBrightness(255);
pixels.fill(0xFF0000);
pixels.show();
}
void loop () {
}