mirror of
https://github.com/thelsing/knx.git
synced 2025-10-12 11:15:54 +02:00
Update knx-demo.ino
This commit is contained in:
parent
43bfcbf722
commit
e09f441de0
@ -1,6 +1,8 @@
|
|||||||
#include <knx.h>
|
#include <knx.h>
|
||||||
|
|
||||||
|
#ifdef ARDUINO_ARCH_ESP8266
|
||||||
#include <WiFiManager.h>
|
#include <WiFiManager.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// create named references for easy access to group objects
|
// create named references for easy access to group objects
|
||||||
#define goCurrent knx.getGroupObject(1)
|
#define goCurrent knx.getGroupObject(1)
|
||||||
@ -73,6 +75,7 @@ void setup()
|
|||||||
SerialDBG.print("Abgleich: "); SerialDBG.println(knx.paramByte(4));
|
SerialDBG.print("Abgleich: "); SerialDBG.println(knx.paramByte(4));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ARDUINO_ARCH_ESP8266
|
||||||
// GPIO (?) of the ESP8266, in which case this is determined by the board selection
|
// GPIO (?) of the ESP8266, in which case this is determined by the board selection
|
||||||
knx.ledPin(LED_BUILTIN);
|
knx.ledPin(LED_BUILTIN);
|
||||||
// GPIO (?) of the ESP8266, the value depends on the circuit used on the board of the led
|
// GPIO (?) of the ESP8266, the value depends on the circuit used on the board of the led
|
||||||
@ -81,6 +84,7 @@ void setup()
|
|||||||
//knx.ledPinActiveOn(HIGH);
|
//knx.ledPinActiveOn(HIGH);
|
||||||
// GPIO (14) of the ESP8266, in which case it is the connector pin D5 on WeMos D1 R2
|
// GPIO (14) of the ESP8266, in which case it is the connector pin D5 on WeMos D1 R2
|
||||||
knx.buttonPin(14);
|
knx.buttonPin(14);
|
||||||
|
#endif
|
||||||
|
|
||||||
// start the framework. Will get wifi first.
|
// start the framework. Will get wifi first.
|
||||||
knx.start();
|
knx.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user