Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post


Navigation


History


Description

Arduino Light Animation (ALA) is a library for Arduino boards to simplify the development of light animations using a wide variety of LEDs and LED strips.


Download, install and import

Download here: http://yaab-arduino.blogspot.com/p/ala.html


Example

  1. #include <AlaLed.h>
  2.  
  3. AlaLed alaLed;
  4.  
  5. void setup()
  6. {
  7.   // initialize the led attached to pin 13
  8.   alaLed.initPWM(13);
  9.  
  10.   // set a fading animation with a duration of 2 seconds
  11.   alaLed.setAnimation(ALA_FADEIN, 2000);
  12. }
  13.  
  14. void loop()
  15. {
  16.   // animate the led
  17.   alaLed.runAnimation();
  18. }