-
Notifications
You must be signed in to change notification settings - Fork 33
1.Setting Up
NOTE This class uses the LEDMatrix class which must be downloaded separately from my GitHub.
In order to use the class you must have the following header files included in your program:-
#include <FastLED.h>
#include <LEDMatrix.h>
#include <LEDText.h>
You will also need some font data, which due to its size, is generally better to be placed in a header file. I have provided several font header files as a starting point.
You must declare an instance of the cLEDMatrix class as this is used to declare and modify the LED data according to the matrix dimensions, layout and origin.
cLEDMatrix<64, 8, HORIZONTAL_ZIGZAG_MATRIX> leds;
The LED array is allocated in the matrix class but the address of the array can be obtained by using '[0]' after the matrix variable name and '.Size()' to obtain the number of LED's:-
FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds[0], leds.Size());
Then finally you can declare the cLEDText class variable:-
cLEDText ScrollingMsg;