mirror of
https://github.com/thelsing/knx.git
synced 2025-08-13 13:46:20 +02:00
Update knx_facade.cpp
This commit is contained in:
parent
ddcfd2c2ad
commit
24e7c36c20
@ -29,21 +29,21 @@ void buttonUp()
|
|||||||
if (knx.progMode())
|
if (knx.progMode())
|
||||||
{
|
{
|
||||||
#ifdef ESP8266_WEMOS_D1_R2
|
#ifdef ESP8266_WEMOS_D1_R2
|
||||||
digitalWrite(knx.ledPin(), HIGH);
|
digitalWrite(knx.ledPin(), HIGH);
|
||||||
#endif
|
#endif
|
||||||
#ifdef ESP8266_NODE_MCU
|
#ifdef ESP8266_NODE_MCU
|
||||||
digitalWrite(knx.ledPin(), LOW);
|
digitalWrite(knx.ledPin(), LOW);
|
||||||
#endif
|
#endif
|
||||||
knx.progMode(false);
|
knx.progMode(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef ESP8266_WEMOS_D1_R2
|
#ifdef ESP8266_WEMOS_D1_R2
|
||||||
digitalWrite(knx.ledPin(), LOW);
|
digitalWrite(knx.ledPin(), LOW);
|
||||||
#endif
|
#endif
|
||||||
#ifdef ESP8266_NODE_MCU
|
#ifdef ESP8266_NODE_MCU
|
||||||
digitalWrite(knx.ledPin(), HIGH);
|
digitalWrite(knx.ledPin(), HIGH);
|
||||||
#endif
|
#endif
|
||||||
knx.progMode(true);
|
knx.progMode(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user