From d986f7f7c7c4c5bb152ed357d519675db12d783e Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:08:58 +0200 Subject: [PATCH] Extend Dali driver --- tasmota/tasmota_xdrv_driver/xdrv_75_dali.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_75_dali.ino b/tasmota/tasmota_xdrv_driver/xdrv_75_dali.ino index 0f3f7516a..fae54ab30 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_75_dali.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_75_dali.ino @@ -44,6 +44,9 @@ #ifndef DALI_OUT_INVERT #define DALI_OUT_INVERT 0 // DALI TX inverted #endif +#ifndef DALI_INIT_STATE +#define DALI_INIT_STATE 50 // DALI init dimmer state 50/254 +#endif //#define DALI_DEBUG #ifndef DALI_DEBUG_PIN @@ -243,6 +246,7 @@ void DaliInit(void) { digitalWrite(DALI_DEBUG_PIN, HIGH); #endif // DALI_DEBUG + Dali->dimmer = DALI_INIT_STATE; Dali->bit_time = ESP.getCpuFreqMHz() * 1000000 / 2400; // Manchester twice 1200 bps DaliEnableRxInterrupt();