platformio,main: add and initialize the NeoPixel
This commit is contained in:
parent
75222d9573
commit
e197473edb
|
@ -16,3 +16,4 @@ build_flags =
|
|||
|
||||
lib_deps =
|
||||
thelsing/knx @ ^1.5.0
|
||||
adafruit/Adafruit NeoPixel@^1.12.3
|
||||
|
|
|
@ -1,7 +1,14 @@
|
|||
#include <Arduino.h>
|
||||
#include <Adafruit_NeoPixel.h>
|
||||
|
||||
#define NUMPIXELS 1
|
||||
|
||||
Adafruit_NeoPixel pixels(NUMPIXELS, PIN_NEOPIXEL, NEO_GRB + NEO_KHZ800);
|
||||
|
||||
void setup() {
|
||||
|
||||
pixels.begin();
|
||||
pixels.setPixelColor(0, pixels.Color(0, 150, 0));
|
||||
pixels.show();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
|
Loading…
Reference in a new issue