Shop OBEX P1 Docs P2 Docs Learn Events
Sparkfun Lumenati modules — Parallax Forums

Sparkfun Lumenati modules

Does anyone have P1 code for interfacing to the Sparkfun Lumenati LED modules?

Thanks

Kurt

Comments

  • JonnyMacJonnyMac Posts: 9,161
    edited 2020-06-12 15:14
    That uses the APA102c LED. Those LEDs are very popular in the movie and TV business because of their high PWM rate. Two of my friends have used the attached driver in movie prop code, and I worked with one of them for a TV show. Sorry, I wrote this code for my pro friends, so I don't have a demo. It's easy though.

    In your app you need to define a buffer to hold the LED color data. If you had just one of those sticks, you could do this:
    var
    
      long  ledbuf[8]
    
    You'll need to define the pins for the data and clock signals -- with that you can start the object.
      leds.start(@ledbuf, 8, LED_D, LED_C)
    
    There are several methods in the object -- you should be able to do what you like with the LEDs.
  • PublisonPublison Posts: 12,366
    edited 2020-06-12 15:15
    Welcome to the forum!

    You can look at Jon's code:

    https://forums.parallax.com/discussion/167866/propeller-powered-costume-element-controller

    or you can plug in APA102C into the upper right search box to find more on the forum.

    EDIT: Jon and I responded at the same time.
  • Thank you Jon.
    I will have some fun with this.
    Kurt
Sign In or Register to comment.