Hi all, I have a problem creating a static font display without scrolling.
After searching, I found some examples.
but there is a problem how to change the font color.
is it possible to change the color without adding a new frame?
Thank you.
#include <avr/pgmspace.h>
#include "Arduino.h"
#include <FastLED.h>
#include <EEPROM.h>
#define LED_PIN 3
#define NUM_LEDS 256
#define BRIGHTNESS 30
CRGB leds[NUM_LEDS];
Int timer = 1000;
const long text_green[] PROGMEM = { //FRAME1 TEXT WITH GREEN COLOR
0x00000000, 0x0000FF00, 0x0000FF00, 0x00000000, 0x0000FF00, 0x00000000, 0x00000000, 0x0000FF00, 0x00000000, 0x0000FF00, 0x00000000, 0x0000FF00,
0x0000FF00, 0x0000FF00, 0x0000FF00, 0x00000000, 0x00000000, 0x0000FF00, 0x0000FF00, 0x00000000, 0x00000000, 0x0000FF00, 0x00000000, 0x0000FF00,
0x0000FF00, 0x00000000, 0x0000FF00, 0x00000000, 0x00000000, 0x0000FF00, 0x0000FF00, 0x00000000, 0x00000000, 0x0000FF00, 0x00000000, 0x0000FF00,
0x00000000, 0x0000FF00, 0x00000000, 0x00000000, 0x0000FF00, 0x00000000, 0x00000000, 0x0000FF00, 0x00000000, 0x0000FF00, 0x0000FF00, 0x00000000,
};
/*
const long text_blue[] PROGMEM = { //FRAME2
}
*/
void setup()
{
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
FastLED.setBrightness(BRIGHTNESS);
}
void loop(){
FastLED.clear();
for(int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(text_green[i]));
FastLED.show();
delay(timer);
}
}