Add neopixel example
This commit is contained in:
parent
147e39d5d1
commit
65ca7e882f
|
@ -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 () {
|
||||
|
||||
}
|
Loading…
Reference in New Issue