MiLed is an easy-to-use Arduino library designed for programming addressable LED strips, specifically WS2812. This library simplifies the process of controlling WS2812 LED strips, allowing you to create captivating lighting effects effortlessly.
Check MiLed's documentation for more info.
-
User-Friendly Interface: MiLed provides a straightforward API for controlling WS2812 LED strips.
-
Effects: The library comes with a variety of built-in effects that you can easily integrate into your projects.
-
Installation: Copy the
MiLed
folder into your Arduino libraries directory. -
Include MiLed in Your Sketch:
#include <MiLed.h>
#define DATA_PIN 11
#define LED_COUNT 8
MiLed ml(DATA_PIN,LED_COUNT);
void setup()
{
}
void loop()
{
ml[0] = LedColor(30,0,0);
ml.show();
delay(500);
ml[0] = LedColor(0);
ml.show();
delay(500);
}
Note: the data pin must be at PORTB