Arduino code for a DALI master controller