would this still work with 107 leds ?
Paul__B:
No, but I will help you to show your code:
#include <FastLED.h>
#define LED_PIN 2
#define NUM_LEDS 16
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
leds[7] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[6] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[5] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[4] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[3] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[2] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[1] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[0] = CRGB(255,255,0);
FastLED.show();
delay(70); // left turn signal
FastLED.clear(); {
}
leds[8] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[9] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[10] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[11] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[12] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[13] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[14] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[15] = CRGB(255,255,0);
FastLED.show();
delay(70); // right turn signal
FastLED.clear();
}
Paul__B:
No, but I will help you to show your code:
#include <FastLED.h>
#define LED_PIN 2
#define NUM_LEDS 16
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
leds[7] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[6] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[5] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[4] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[3] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[2] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[1] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[0] = CRGB(255,255,0);
FastLED.show();
delay(70); // left turn signal
FastLED.clear(); {
}
leds[8] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[9] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[10] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[11] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[12] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[13] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[14] = CRGB(255,255,0);
FastLED.show();
delay(60);
leds[15] = CRGB(255,255,0);
FastLED.show();
delay(70); // right turn signal
FastLED.clear();
}