many thanks
here my original code .ino
/* Arduino 256 RGB LEDs Matrix Animation Frame
Using WS2812 LED Strips
Created by Barre
*/
#include <avr/pgmspace.h> // Needed to store stuff in Flash using PROGMEM
#include "FastLED.h" // Fastled library to control the LEDs
#include "xmas.h"
// How many leds are connected?
#define NUM_LEDS 256
// Define the Data Pin
#define DATA_PIN RX // Connected to the data pin of the first LED strip
// Define the trasistor pin
//#define R_PIN D2
int R_PIN = D2;
// Define the array of leds
CRGB leds[NUM_LEDS];
uint32_t * Xitems[77] = {
"Xmas001" , "Xmas002" , "Xmas003" , "Xmas004" , "Xmas005" , "Xmas006" , "Xmas007" , "Xmas008" , "Xmas009" , "Xmas010" , "Xmas011" , "Xmas012" , "Xmas013" , "Xmas014" , "Xmas015" , "Xmas016" , "Xmas017" , "Xmas018" , "Xmas019" , "Xmas020" , "Xmas021" , "Xmas022" , "Xmas023" , "Xmas024" , "Xmas025" , "Xmas026" , "Xmas027" , "Xmas028" , "Xmas029" , "Xmas030" , "Xmas031" , "Xmas032" , "Xmas033" , "Xmas034" , "Xmas035" , "Xmas036" , "Xmas037" , "Xmas038" , "Xmas039" , "Xmas040" , "Xmas041" , "Xmas042" , "Xmas043" , "Xmas044" , "Xmas045" , "Xmas046" , "Xmas047" , "Xmas048" , "Xmas049" , "Xmas050" , "Xmas051" , "Xmas052" , "Xmas053" , "Xmas054" , "Xmas055" , "Xmas056" , "Xmas057" , "Xmas058" , "Xmas059" , "Xmas060" , "Xmas061" , "Xmas062" , "Xmas063" , "Xmas064" , "Xmas065" , "Xmas066" , "Xmas067" , "Xmas068" , "Xmas069" , "Xmas070" , "Xmas071" , "Xmas072" , "Xmas073" , "Xmas074" , "Xmas075" , "Xmas076" , "Xmas077"
};
void setup() {
pinMode(R_PIN, OUTPUT);
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // Init of the Fastled library
FastLED.setBrightness(50);
FastLED.clear();
}
void loop() {
//digitalWrite(R_PIN, HIGH); // turn transistor ON
// LEDMATRIX(); /// long code
RUNMATRIX(); // dynamical shorter code
}
void RUNMATRIX() {
// Frame 1-77
FastLED.clear();
for (byte frame = 0; frame < sizeof(Xitems) / sizeof(Xitems[0]); frame++)
{
for (int i = 0; i < NUM_LEDS; i++)
{
leds[i] = pgm_read_dword(&(Xitems[frame][I]));
}
}
FastLED.show();
delay(400);
}
void LEDMATRIX() {
// Frame 1
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas001[i]));
}
FastLED.show();
delay(400);
// Frame 2
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas002[i]));
}
FastLED.show();
delay(400);
// Frame 3
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas003[i]));
}
FastLED.show();
delay(400);
// Frame 4
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas004[i]));
}
FastLED.show();
delay(400);
// Frame 5
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas005[i]));
}
FastLED.show();
delay(400);
// Frame 6
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas006[i]));
}
FastLED.show();
delay(400);
// Frame 7
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas007[i]));
}
FastLED.show();
delay(400);
// Frame 8
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas008[i]));
}
FastLED.show();
delay(400);
// Frame 9
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas009[i]));
}
FastLED.show();
delay(400);
// Frame 10
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas010[i]));
}
FastLED.show();
delay(400);
// Frame 11
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas011[i]));
}
FastLED.show();
delay(400);
// Frame 12
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas012[i]));
}
FastLED.show();
delay(400);
// Frame 13
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas013[i]));
}
FastLED.show();
delay(400);
// Frame 14
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas014[i]));
}
FastLED.show();
delay(400);
// Frame 15
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas015[i]));
}
FastLED.show();
delay(400);
// Frame 16
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas016[i]));
}
FastLED.show();
delay(400);
// Frame 17
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas017[i]));
}
FastLED.show();
delay(400);
// Frame 18
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas018[i]));
}
FastLED.show();
delay(400);
// Frame 19
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas019[i]));
}
FastLED.show();
delay(400);
// Frame 20
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas020[i]));
}
FastLED.show();
delay(400);
// Frame 21
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas021[i]));
}
FastLED.show();
delay(400);
// Frame 22
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas022[i]));
}
FastLED.show();
delay(400);
// Frame 23
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas023[i]));
}
FastLED.show();
delay(400);
// Frame 24
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas024[i]));
}
FastLED.show();
delay(400);
// Frame 25
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas025[i]));
}
FastLED.show();
delay(400);
// Frame 26
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas026[i]));
}
FastLED.show();
delay(400);
//
// Frame 27
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas027[i]));
}
FastLED.show();
delay(400);
// Frame 28
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas028[i]));
}
FastLED.show();
delay(400);
// Frame 29
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas029[i]));
}
FastLED.show();
delay(400);
// Frame 30
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas030[i]));
}
FastLED.show();
delay(400);
// Frame 31
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas031[i]));
}
FastLED.show();
delay(400);
// Frame 32
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas032[i]));
}
FastLED.show();
delay(400);
// Frame 33
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas033[i]));
}
FastLED.show();
delay(400);
// Frame 34
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas034[i]));
}
FastLED.show();
delay(400);
// Frame 35
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas035[i]));
}
FastLED.show();
delay(400);
// Frame 36
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas036[i]));
}
FastLED.show();
delay(400);
// Frame 37
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas037[i]));
}
FastLED.show();
delay(400);
// Frame 38
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas038[i]));
}
FastLED.show();
delay(400);
// Frame 39
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas039[i]));
}
FastLED.show();
delay(400);
// Frame 40
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas040[i]));
}
FastLED.show();
delay(400);
// Frame 41
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas041[i]));
}
FastLED.show();
delay(400);
// Frame 42
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas042[i]));
}
FastLED.show();
delay(400);
// Frame 43
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas043[i]));
}
FastLED.show();
delay(400);
// Frame 44
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas044[i]));
}
FastLED.show();
delay(400);
// Frame 45
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas045[i]));
}
FastLED.show();
delay(400);
// Frame 46
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas046[i]));
}
FastLED.show();
delay(400);
// Frame 47
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas047[i]));
}
FastLED.show();
delay(400);
// Frame 48
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas048[i]));
}
FastLED.show();
delay(400);
// Frame 49
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas049[i]));
}
FastLED.show();
delay(400);
// Frame 50
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas050[i]));
}
FastLED.show();
delay(400);
// Frame 51
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas051[i]));
}
FastLED.show();
delay(400);
// Frame 52
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas052[i]));
}
FastLED.show();
delay(400);
// Frame 53
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas053[i]));
}
FastLED.show();
delay(400);
// Frame 54
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas054[i]));
}
FastLED.show();
delay(400);
// Frame 55
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas055[i]));
}
FastLED.show();
delay(400);
// Frame 56
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas056[i]));
}
FastLED.show();
delay(400);
// Frame 57
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas057[i]));
}
FastLED.show();
delay(400);
// Frame 58
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas058[i]));
}
FastLED.show();
delay(400);
// Frame 59
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas059[i]));
}
FastLED.show();
delay(400);
// Frame 60
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas060[i]));
}
FastLED.show();
delay(400);
// Frame 61
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas061[i]));
}
FastLED.show();
delay(400);
// Frame 62
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas062[i]));
}
FastLED.show();
delay(400);
// Frame 63
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas063[i]));
}
FastLED.show();
delay(400);
// Frame 64
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas064[i]));
}
FastLED.show();
delay(400);
// Frame 65
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas065[i]));
}
FastLED.show();
delay(400);
// Frame 66
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas066[i]));
}
FastLED.show();
delay(400);
// Frame 67
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas067[i]));
}
FastLED.show();
delay(400);
// Frame 68
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas068[i]));
}
FastLED.show();
delay(400);
// Frame 69
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas069[i]));
}
FastLED.show();
delay(400);
// Frame 70
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas070[i]));
}
FastLED.show();
delay(400);
// Frame 71
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas071[i]));
}
FastLED.show();
delay(400);
// Frame 72
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas072[i]));
}
FastLED.show();
delay(400);
// Frame 73
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas073[i]));
}
FastLED.show();
delay(400);
// Frame 74
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas074[i]));
}
FastLED.show();
delay(400);
// Frame 75
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas075[i]));
}
FastLED.show();
delay(400);
// Frame 76
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas076[i]));
}
FastLED.show();
delay(400);
// Frame 77
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Xmas077[i]));
}
FastLED.show();
delay(400);
}
above i got the error
cannot convert 'const char*' to 'uint32_t*' {aka 'unsigned int*'} in initialization
full code in start as attachament