#include <FastLED.h>
#define NUM_LEDS 119
#define DATA_PIN 33
#define COLOR_ORDER GRB
#define LED_TYPE WS2812
CRGB leds[NUM_LEDS];
byte ledsPattern1[NUM_LEDS] = {0,1,1,1,0,0,1,1,1,0,1,1,0,0,0,0,0,1,0,0,1,1,1,1,1,1,1};
void setup() {
Serial.begin(9600);
LEDS.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
}
String serialInput;
void loop() {
while( Serial.available() ) {
serialInput = Serial.readString();
Serial.println(serialInput);
}
// if(serialInput.startsWith("Ok")) {
// }
for(int i = 0; i < NUM_LEDS; i++) {
if(ledsPattern1[i]==1) {
leds[i] = CHSV(160, 255, 255);
} else {
leds[i] = CHSV(0, 0, 0);
}
}
FastLED.show();
}