hubsif / arduino-dali

A timer-based DALI (Digital Addressable Lighting Interface) library for Arduino
https://hubsif.github.io/arduino-dali/
GNU General Public License v3.0
26 stars 19 forks source link

Feature add receiving and broadcast #7

Closed thewhobox closed 1 week ago

thewhobox commented 1 year ago

I added some functions to send broadcast arcs and cmds.

I also added the feature to receive commands/responses like described in #6 . Example:

Dali.setCallback([](uint8_t *data, uint8_t len) -> void {
    logHexInfo("Test", data, len);
});

Its important to keep the code very short otherwise you will lose following commands or responses.