Installing the library

  1. Copy Miled library into your Arduino libraries directory.
  2. Include MiLed in Your Sketch
  3. Write code
#include <MiLed.h>

#define DATA_PIN  11
#define LED_COUNT  8

MiLed ml(DATA_PIN,LED_COUNT);

void setup()
{

}

void loop()
{
    ml[0] = Led(30,0,0);
    ml.show();
    delay(500);
    ml[0] = Led(0);
    ml.show();
    delay(500);
}

Example code showing some of the effects

#include <MiLed.h>

#define DATA_PIN  11
#define LED_COUNT  8

MiLed ml(DATA_PIN,LED_COUNT);

void setup()
{

}

void loop()
{
    effects::gravitypush(ml, Led(30,0,0),35);
    effects::sendfadeleds(ml,Led(70));
    effects::firework(ml);
}