Hello all,
I'm trying to create a LED show for my 3-year-old that scrolls through the alphabet and change colors to help teach him letters/colors.
I'm using an Eelegoo Uno R3
a BTF-lighting WS2812B RGB 5050SMD individually addressable Digital 16x16 256 pixels "led pannel"
Below is my code, which I know is wrong. When I run the program, it will show both A in red & B in Blue. I'd like it to display the letter A, wait a Minute or Two have it display the letter B & so on. I'm missing out or unsure where to find the code I need to enter to do this.
Any assistance is much appreciated if there's an easier way to code this or a cheat sheet please let me know.
Thank you.
*** Code**
#include <FastLED.h>
#define NUM_LEADS 256
#define DATA_PIN 8
int delayTime= 1000;
CRGB strip1[NUM_LEADS];
void setup() {
// put your setup code here, to run once:
FastLED.addLeds<WS2812B, DATA_PIN, GRB>(strip1, NUM_LEADS);
FastLED.setBrightness(50);
}
void loop() {
// put your main code here, to run repeatedly:
strip1[199] = CRGB (255, 0, 0);
strip1[200] = CRGB (255, 0, 0);
strip1[184] = CRGB (255, 0, 0);
strip1[183] = CRGB (255, 0, 0);
strip1[165] = CRGB (255, 0, 0);
strip1[166] = CRGB (255, 0, 0);
strip1[169] = CRGB (255, 0, 0);
strip1[170] = CRGB (255, 0, 0);
strip1[155] = CRGB (255, 0, 0);
strip1[154] = CRGB (255, 0, 0);
strip1[149] = CRGB (255, 0, 0);
strip1[148] = CRGB (255, 0, 0);
strip1[131] = CRGB (255, 0, 0);
strip1[132] = CRGB (255, 0, 0);
strip1[133] = CRGB (255, 0, 0);
strip1[134] = CRGB (255, 0, 0);
strip1[135] = CRGB (255, 0, 0);
strip1[136] = CRGB (255, 0, 0);
strip1[137] = CRGB (255, 0, 0);
strip1[138] = CRGB (255, 0, 0);
strip1[139] = CRGB (255, 0, 0);
strip1[140] = CRGB (255, 0, 0);
strip1[125] = CRGB (255, 0, 0);
strip1[124] = CRGB (255, 0, 0);
strip1[115] = CRGB (255, 0, 0);
strip1[114] = CRGB (255, 0, 0);
strip1[97] = CRGB (255, 0, 0);
strip1[98] = CRGB (255, 0, 0);
strip1[109] = CRGB (255, 0, 0);
strip1[110] = CRGB (255, 0, 0);
strip1[95] = CRGB (255, 0, 0);
strip1[94] = CRGB (255, 0, 0);
strip1[81] = CRGB (255, 0, 0);
strip1[80] = CRGB (255, 0, 0);
strip1[64] = CRGB (255, 0, 0);
strip1[79] = CRGB (255, 0, 0);
delay(delayTime);
strip1[252] = CRGB (0, 0, 255);
strip1[251] = CRGB (0, 0, 255);
strip1[277] = CRGB (0, 0, 255);
strip1[229] = CRGB (0, 0, 255);
strip1[220] = CRGB (0, 0, 255);
strip1[217] = CRGB (0, 0, 255);
strip1[195] = CRGB (0, 0, 255);
strip1[199] = CRGB (0, 0, 255);
strip1[188] = CRGB (0, 0, 255);
strip1[183] = CRGB (0, 0, 255);
strip1[163] = CRGB (0, 0, 255);
strip1[167] = CRGB (0, 0, 255);
strip1[156] = CRGB (0, 0, 255);
strip1[153] = CRGB (0, 0, 255);
strip1[131] = CRGB (0, 0, 255);
strip1[133] = CRGB (0, 0, 255);
strip1[124] = CRGB (0, 0, 255);
strip1[123] = CRGB (0, 0, 255);
strip1[99] = CRGB (0, 0, 255);
strip1[101] = CRGB (0, 0, 255);
strip1[92] = CRGB (0, 0, 255);
strip1[89] = CRGB (0, 0, 255);
strip1[67] = CRGB (0, 0, 255);
strip1[71] = CRGB (0, 0, 255);
strip1[60] = CRGB (0, 0, 255);
strip1[55] = CRGB (0, 0, 255);
strip1[35] = CRGB (0, 0, 255);
strip1[39] = CRGB (0, 0, 255);
strip1[28] = CRGB (0, 0, 255);
strip1[25] = CRGB (0, 0, 255);
strip1[3] = CRGB (0, 0, 255);
strip1[4] = CRGB (0, 0, 255);
strip1[5] = CRGB (0, 0, 255);
delay(delayTime);
FastLED.show();
}