Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: How to use FastLED to show texts and movies

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    6

    How to use FastLED to show texts and movies

    Hello there.
    I'm trying to build my led display with LED Strips, 52LEDs/m LPD8806 5050SMDs, and teensy 3.1 but I don't know to use the library FastLED to developer the software controller.
    I even set my led strips in a 52x30 matrix.
    I tried to do something but I just got change the colors of smds, but I want to show texts, movies, pictures, ads, etc.
    I'm starting with a small display but in the future I'll build a large LED Display.
    Thank you.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,727
    The FastLED library gives you the ability to control the pixels.

    To draw text, you're going to have to add code which reads a font and draws the individual pixels. For example, this code exists in the Adafruit GFX library. FastLED isn't designed to work directly with Adafruit's library, but if you look at Adafruit's code, you'll see there's a fairly simple drawChar() function, which in turn calls drawPixel().

    https://github.com/adafruit/Adafruit...t_GFX.cpp#L391

    You could try using this code, of course with modification to replace drawPixel() with code to change the pixels on FastLED.


    Likewise for pictures and video, you'll need to add code to do these things. For video, you might look at my OctoWS2811 library. There's a sample Arduino sketch and Processing sketch for communicating video from a PC to the buffer on Teensy. Again, you can't use that code exactly as-is, because it was made for OctoWS2811 instead of FastLED. But the idea is basically the same, but the buffer may have a different arrangement, so some editing in the Processing code would be needed.


    As far as I know, there are no simple ready-to-use examples, but there is plenty of code out there for other libraries that can be adapted, so at least you don't have to build all the font drawing and video playing code from scratch. Some work is required, but hopefully this helps?

  3. #3
    Junior Member
    Join Date
    May 2014
    Posts
    6
    Hello Paul, thaks for your reply.
    Paul but How the developers about that project http://www.dorkbotpdx.org/blog/armat...led_video_wall builded a display using LED Strips LPD8806? What library they used?
    Is there anyone developing some library to work with LPD8806 like OctoWS2811?
    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •