platformio,main: add and initialize the NeoPixel

This commit is contained in:
Sebastian Jaeckel 2024-12-03 15:16:01 +01:00
parent 75222d9573
commit e197473edb
Signed by: wose
GPG key ID: 6124402A3FAA8631
2 changed files with 10 additions and 2 deletions

View file

@ -16,3 +16,4 @@ build_flags =
lib_deps = lib_deps =
thelsing/knx @ ^1.5.0 thelsing/knx @ ^1.5.0
adafruit/Adafruit NeoPixel@^1.12.3

View file

@ -1,9 +1,16 @@
#include <Arduino.h> #include <Arduino.h>
#include <Adafruit_NeoPixel.h>
void setup(){ #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(){ void loop() {
} }