This library has not been tested, there will be a few bugs thoughout it. If you wish to use this library, it will be tested and complete soon.
This is a LED Fadding control library for Arduino. Each LED can be controlled individually or by its master LED. This is to try and make it easier to manage LEDs.
#include <LED_master_slave.h>
LED_slave LEDs[] = {
LED_slave(4),
LED_slave(9),
LED_slave(10)
};
LED_slave_Master LEDMaster(LEDs,3);
void setup()
{
LEDMaster.SetFade(255,10000);
}
void loop()
{
LEDMaster.run();
}
include <LED_master_slave.h>
LED_slave LEDs[] = {
LED_slave(4),
LED_slave(9),
LED_slave(10)
};
LED_slave_Master LEDMaster(LEDs,3);
void setup()
{
LEDMaster.SetFade(255,10000);
LEDs[1].SetFade(255,2000);
}
void loop()
{
LEDMaster.run();
if(LEDs[1].isFinished())
{
LEDs[1].SetFade(0,2000);
}
}
#include <LED_master_slave.h>
LED_slave LED(4);
void setup()
{
LED.SetFade(255,2000);
}
void loop()
{
LED.run();
}