Skip to content

Commit

Permalink
Extend Dali driver
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst authored and josef109 committed Nov 7, 2024
1 parent def5515 commit 775ddde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasmota/tasmota_xdrv_driver/xdrv_75_dali.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 775ddde

Please sign in to comment.