Quote:
Originally Posted by Roger
If you have a single long strip of 24 individually controllable LED lights (such as this), you are probably asking about a KITT light, or a Battlestar Glactica Cylon light, or (more generically) a Larson scanner, who created the effect, you can do a search for the names and get plenty of solutions. Adafruit has a nice project that explains it. Your LEDs might have different calls to address the bulbs, but the code concept is the same. This is what it sounds like you're trying to do.
If, instead, you have an array of the LEDs, to make a sine wave, that's different. KITT lights where on my to-do list, I just didn't remember what it was called.
If this is your first time working with LED strips, look for examples on how to use that particular type and try them out, making changes to the examples to see how the code operates.
Sometimes (most of the time) if your code "doesn't work" it is just missing one important bit, or your hardware isn't wired correctly. Code examples that work eliminates a lot of errors.
|
Thank you all for helping me.
Roger, your first half of your post is most helpful. I will poke at them tonight when I get home.
What I have is
Adafruit 24-Channel 12-bit PWM LED Driver - SPI Interface - TLC5947 with individual 24 simple LEDs connected.
Sin or Cos wave is not to display a wave on LED matrix, but rather control brightness of the LEDs of a row of LEDs and that where PWM controller interface come in play.
I don't have NeoPixel strip yet. I will order NeoPixel or DotStar when I get my tax refund

. Perhaps it is easier for what i am trying to do. We'll see.