mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 04:06:34 +00:00
Extend Dali driver
This commit is contained in:
parent
3e0d36af9d
commit
d986f7f7c7
@ -44,6 +44,9 @@
|
|||||||
#ifndef DALI_OUT_INVERT
|
#ifndef DALI_OUT_INVERT
|
||||||
#define DALI_OUT_INVERT 0 // DALI TX inverted
|
#define DALI_OUT_INVERT 0 // DALI TX inverted
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef DALI_INIT_STATE
|
||||||
|
#define DALI_INIT_STATE 50 // DALI init dimmer state 50/254
|
||||||
|
#endif
|
||||||
|
|
||||||
//#define DALI_DEBUG
|
//#define DALI_DEBUG
|
||||||
#ifndef DALI_DEBUG_PIN
|
#ifndef DALI_DEBUG_PIN
|
||||||
@ -243,6 +246,7 @@ void DaliInit(void) {
|
|||||||
digitalWrite(DALI_DEBUG_PIN, HIGH);
|
digitalWrite(DALI_DEBUG_PIN, HIGH);
|
||||||
#endif // DALI_DEBUG
|
#endif // DALI_DEBUG
|
||||||
|
|
||||||
|
Dali->dimmer = DALI_INIT_STATE;
|
||||||
Dali->bit_time = ESP.getCpuFreqMHz() * 1000000 / 2400; // Manchester twice 1200 bps
|
Dali->bit_time = ESP.getCpuFreqMHz() * 1000000 / 2400; // Manchester twice 1200 bps
|
||||||
|
|
||||||
DaliEnableRxInterrupt();
|
DaliEnableRxInterrupt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user