diff --git a/doc/CC1101-868mhz-radio-module-pinout.jpg b/doc/CC1101-868mhz-radio-module-pinout.jpg new file mode 100644 index 0000000..1071fc9 Binary files /dev/null and b/doc/CC1101-868mhz-radio-module-pinout.jpg differ diff --git a/examples/knx-rf-demo/README.md b/doc/knx_rf_notes.md similarity index 100% rename from examples/knx-rf-demo/README.md rename to doc/knx_rf_notes.md diff --git a/examples/knx-rf-demo/knx-rf-demo.knxprod b/examples/knx-demo/knx-demo-rf.knxprod similarity index 100% rename from examples/knx-rf-demo/knx-rf-demo.knxprod rename to examples/knx-demo/knx-demo-rf.knxprod diff --git a/examples/knx-rf-demo/knx-rf-demo.xml b/examples/knx-demo/knx-demo-rf.xml similarity index 100% rename from examples/knx-rf-demo/knx-rf-demo.xml rename to examples/knx-demo/knx-demo-rf.xml diff --git a/examples/knx-rf-demo/knx-rf-demo.ino b/examples/knx-rf-demo/knx-rf-demo.ino deleted file mode 100644 index b4aefed..0000000 --- a/examples/knx-rf-demo/knx-rf-demo.ino +++ /dev/null @@ -1,70 +0,0 @@ -#include - -// create macros easy access to group objects -#define goTemperature knx.getGroupObject(1) -#define goHumidity knx.getGroupObject(2) - -uint32_t cyclSend = 0; -uint8_t sendCounter = 0; -long lastsend = 0; - -// Entry point for the example -void setup(void) -{ - Serial1.begin(115200); - ArduinoPlatform::SerialDebug = &Serial1; - delay(1000); - Serial1.println("start"); - - // read adress table, association table, groupobject table and parameters from eeprom - knx.readMemory(); - - if (knx.induvidualAddress() == 0) - knx.progMode(true); - - - if (knx.configured()) - { - cyclSend = knx.paramInt(0); - Serial1.print("Zykl. send:"); - Serial1.println(cyclSend); - goTemperature.dataPointType(Dpt(9, 1)); - goHumidity.dataPointType(Dpt(9, 1)); - } - - // start the framework. - knx.start(); -} - -// Function that is looped forever -void loop(void) -{ - // don't delay here to much. Otherwise you might lose packages or mess up the timing with ETS - knx.loop(); - - // only run the application code if the device was configured with ETS - if(!knx.configured()) - return; - - long now = millis(); - if ((now - lastsend) < 3000) - return; - - lastsend = now; - - float temp = 1.2345; - float humi = 60.2; - String output = String(millis()); - output += ", " + String(temp); - output += ", " + String(humi); - Serial1.println(output); - - if (sendCounter++ == cyclSend) - { - sendCounter = 0; - - goTemperature.value(temp); - goHumidity.value(humi); - } - -}