From e09f441de05ed0bd8e809dc93c2ae65bfc5330c7 Mon Sep 17 00:00:00 2001 From: Maggyver <46162338+Maggyver@users.noreply.github.com> Date: Wed, 22 May 2019 16:58:37 +0200 Subject: [PATCH] Update knx-demo.ino --- examples/knx-demo/knx-demo.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/knx-demo/knx-demo.ino b/examples/knx-demo/knx-demo.ino index 278287c..f9a71a9 100644 --- a/examples/knx-demo/knx-demo.ino +++ b/examples/knx-demo/knx-demo.ino @@ -1,6 +1,8 @@ #include +#ifdef ARDUINO_ARCH_ESP8266 #include +#endif // create named references for easy access to group objects #define goCurrent knx.getGroupObject(1) @@ -73,6 +75,7 @@ void setup() 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 knx.ledPin(LED_BUILTIN); // 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); // GPIO (14) of the ESP8266, in which case it is the connector pin D5 on WeMos D1 R2 knx.buttonPin(14); + #endif // start the framework. Will get wifi first. knx.start();