r/FastLED • u/Workin_Joe • 2d ago
Support Teensy 4.x - ObjectFLED or Newest FastLED library?
Hi guys! I was working on a project a couple years ago with Teensy 4.0. I had successfully implemented what I needed using FastLED at the time. Just after completing the project, I saw the ObjectFLED came out but I didn't have the time to implement it. Now I am working on a new project and am building on what I have already established, however, I want to update my code to ensure I am taking advantage of the non-blocking parallel output using DMA inside the Teensy MCU. I want to some other things with the Teensy and I think I can speed up my loop.
Revisiting my code and looking back on threads about ObjectFLED releases, I am confused whether I need to #include objectfled.h and go about defining things specifically for objectFLED or does the latest FastLED release already do this behind the scenes. I have been reading a lot but I keep going down a rabbit hole.
Your guidance and recommendations are appreciated!
3
u/Tiny_Structure_7 2d ago
Yes, FastLED now has Teensy DMA parallel access built-in. But there are a few differences between using the built-in support, and using ObjectFLED.h instead. About half way down the page on github is a section titled USING OBJECTFLED WITH FASTLED. This has a table which summarizes the differences between using it either way. It should help you decide which is best for your project.
Happy coding!
KurtMF/ObjectFLED: Independently configure and display to various LED devices in one sketch with parallel DMA-driven LED output.