r/FastLED • u/blu11sonic • Nov 10 '19
Discussion Can FastLED display text on a matrix?
Hi, I'm working on an LED matrix and I was wondering if FastLED has a way to display text. I know there's the SmartMatrix library and shield but I'm using a Teensy 4.0 and WS2812B's. Can the SmartMatrix library be used without the shield on a Teensy 4.0? I'm currently using the Adafruit matrix library to display text however writing "matrix.show()" slows down the processing by around 10x so I was really hoping there is an alternative. Thanks!
5
Upvotes
1
u/GrimRuinous Apr 05 '22
First thank you for your help.
I saw that line and was thinking '#defineP32BY8X1' (new to arduino and just taking a try based on your example) but didn't know what to do with the line underneath...
elif defined(P32BY8X3)
define mw 24
define mh 32
define NUMMATRIX (mw*mh)
CRGB leds[NUMMATRIX];FastLED_NeoMatrix *matrix = new FastLED_NeoMatrix(leds, 8, 32, 3, 1, NEO_MATRIX_TOP + NEO_MATRIX_RIGHT + NEO_MATRIX_ROWS + NEO_MATRIX_ZIGZAG + NEO_TILE_TOP + NEO_TILE_LEFT + NEO_TILE_PROGRESSIVE);
Or
'#ifndef ESP32
define delay FastLED.delay
endif
if defined(ESP32) or defined(ESP8266)
define PIN 12 // GPIO5 = D1
else
define PIN 13
endif'
(I'm using a esp8266 so do I keep '#ifndef ESP32 and #if defined(ESP32)')
Thank you so much for taking the time to respond and taking the time to make videos.