DALI Library for Arduino/AVR
Loading...
Searching...
No Matches
DALI Library for Arduino/AVR

This library allows you to create a DALI controller/gateway with an Arduino device. It supports sending commands, receiving responses and commissioning devices. It requires the TimerOne library for transmission and the PinChangeInterrupt library for reception. These libraries need to be installed with the Library Manager in the Arduino IDE.

Simple example
#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
Changelog
  • (2022-09-19) Make commissioning state public
  • (2019-05-14) Initial release
Author
hubsif hubsi.nosp@m.f@gm.nosp@m.x.de