DALI Library for Arduino/AVR
Loading...
Searching...
No Matches
dali_blink.ino
#include <Dali.h>
void setup() {
Dali.begin(2, 3);
}
void loop() {
// blink ballast with short address 3
Dali.sendArc(3, 254);
// alternatively to prevent fading you could use
// Dali.sendCmd(3, Dali.CMD_RECALL_MIN);
delay(1000);
Dali.sendArc(3, 0);
// alternatively to prevent fading you could use
// Dali.sendCmd(3, Dali.CMD_OFF);
delay(1000);
}
Main header file of the DALI library for Arduino.
daliReturnValue sendArc(byte address, byte value, byte addr_type=DALI_SHORT_ADDRESS)
Definition: Dali.cpp:64
void begin(byte tx_pin, byte rx_pin, bool active_low=true)
Definition: Dali.cpp:36