ALA Example - SimpleTlc5940

This is one of the examples to the Arduino Light Animation (ALA) library.

Example to demonstrate how to animate few LEDs using a TLC5940 chip.


#include "AlaLed.h"

AlaLed alaLed;

byte pins[] = { 4, 5, 6, 7, 8 };

void setup()
{
  alaLed.initTLC5940(5, pins);
  alaLed.setAnimation(ALA_GLOW, 2000);
}

void loop()
{
  alaLed.runAnimation();
}


3 comments:

  1. Great,

    Thanks,

    How can I run 2 animations after another ?
    Like BARSHIFTRIGHT+BARSHIFTLEFT
    Or how to make custom animations ?

    Thanks again

    Fred Boliau

    ReplyDelete
    Replies
    1. Hi,
      look at these two examples
      http://yaab-arduino.blogspot.it/p/ala-example-multiledseq.html
      http://yaab-arduino.blogspot.com/p/ala-example-rgbledseq.html

      It's not possible to make custom animations at the moment.

      Delete
  2. Hi,
    Can I use 4 TLC5940 chips with this library?
    If it possible how can I wire and code it?
    Thank you

    ReplyDelete

Note: Only a member of this blog may post a comment.