mirror of
https://github.com/thelsing/knx.git
synced 2025-08-26 13:51:28 +02:00
Update knx-demo.ino
This commit is contained in:
parent
58a5d8163d
commit
43bfcbf722
@ -1,5 +1,6 @@
|
|||||||
#include <knx.h>
|
#include <knx.h>
|
||||||
|
|
||||||
|
#include <WiFiManager.h>
|
||||||
|
|
||||||
// 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)
|
||||||
@ -71,6 +72,15 @@ void setup()
|
|||||||
SerialDBG.print("Aenderung senden: "); SerialDBG.println(knx.paramByte(3));
|
SerialDBG.print("Aenderung senden: "); SerialDBG.println(knx.paramByte(3));
|
||||||
SerialDBG.print("Abgleich: "); SerialDBG.println(knx.paramByte(4));
|
SerialDBG.print("Abgleich: "); SerialDBG.println(knx.paramByte(4));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GPIO (?) of the ESP8266, in which case this is determined by the board selection
|
||||||
|
knx.ledPin(LED_BUILTIN);
|
||||||
|
// GPIO (?) of the ESP8266, the value depends on the circuit used on the board of the led
|
||||||
|
// if "0" or "low" then the output switches to gnd, at "1" or "high" the output switches to vcc
|
||||||
|
// if the next line is commented out then the default is: output switches to gnd
|
||||||
|
//knx.ledPinActiveOn(HIGH);
|
||||||
|
// GPIO (14) of the ESP8266, in which case it is the connector pin D5 on WeMos D1 R2
|
||||||
|
knx.buttonPin(14);
|
||||||
|
|
||||||
// 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