#include <FastLED.h>
#define DATA_PIN 32
#define NUM_PIX 16 // aantal pixels aan te passen per type strip
CRGB ledstrips[NUM_PIX];
int keyLed;
int valueR;
int valueG;
int valueB;
void setup() {
// Start Serial port
Serial.begin(115200);
//FASTLED ledstrips obj
FastLED.addLeds<WS2812, DATA_PIN, GRB>(ledstrips, NUM_PIX);
for (int t = 0; t < 16; t++) {
ledstrips[t] = CRGB(0, 0, 0);
}
FastLED.show();
}
void loop() {
check_pc();
ledstrips[keyLed] = CRGB(valueR, valueG, valueB);
FastLED.show();
}