r/FastLED • u/Tiny_Structure_7 • Nov 24 '24
Announcements New Release: ObjectFLED- Multi-Object DMA Display Driver for Fast LEDs on Teensy 4.x
I hope someone else can find this useful. Unlock the full LED-driving power of Teensy 4.x!
https://github.com/KurtMF/ObjectFLED
EDIT: If anyone uses this on a Teensy 4.1, I'd appreciate a confirmation that it works as designed. I only had 4.0 to test on, plus assurance from the OctoWS2811 code that it is equally compatible on 4.1, with it's extra 15 pins (and extra loaded features). Thanks!
20
Upvotes
View all comments
Show parent comment
2
u/Tiny_Structure_7 Nov 30 '24 edited Nov 30 '24
You're welcome. Yes, that rule is true for a single display object. When you assign multiple pins to a display object, then the drawing buffer (typ. array of CRGB) is equally divided into segments, one per pin. But you can have multiple display objects which can have different drawing buffers and different pin assignments.
Lets say you have 2 20-pixel strings, and 2 25-pixel strings. You can put them into a single display object, with a 4 x 25 drawing array, and assign 4 pins. Each pin gets each row of your drawing buffer, and 5 pixels on each of the 20-pix strings "spill off" the end of the string for each show(). They are effectively ignored.
Or you could put the 2 20s into one display object (2 x 20 array, 2 pins), and the 2 25s into another.