diff --git a/examples/AirQualitySensor/AirQualitySensor.ino b/examples/AirQualitySensor/AirQualitySensor.ino index bdf77d0..93fd8be 100644 --- a/examples/AirQualitySensor/AirQualitySensor.ino +++ b/examples/AirQualitySensor/AirQualitySensor.ino @@ -39,7 +39,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino b/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino index 4fe41d8..e271c5f 100644 --- a/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino +++ b/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino @@ -33,7 +33,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino b/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino index 5e77f48..8ba3e01 100644 --- a/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino +++ b/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino @@ -35,7 +35,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include @@ -70,12 +72,8 @@ MyMessage msg2(SECONDARY_CHILD_ID, V_TRIPPED); void setup() { // Setup the buttons - pinMode(PRIMARY_BUTTON_PIN, INPUT); - pinMode(SECONDARY_BUTTON_PIN, INPUT); - - // Activate internal pull-ups - digitalWrite(PRIMARY_BUTTON_PIN, HIGH); - digitalWrite(SECONDARY_BUTTON_PIN, HIGH); + pinMode(PRIMARY_BUTTON_PIN, INPUT_PULLUP); + pinMode(SECONDARY_BUTTON_PIN, INPUT_PULLUP); } void presentation() diff --git a/examples/CO2Sensor/CO2Sensor.ino b/examples/CO2Sensor/CO2Sensor.ino index 9a8fb98..73670ef 100644 --- a/examples/CO2Sensor/CO2Sensor.ino +++ b/examples/CO2Sensor/CO2Sensor.ino @@ -43,7 +43,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/DimmableLEDActuator/DimmableLEDActuator.ino b/examples/DimmableLEDActuator/DimmableLEDActuator.ino index 4e5c35b..d64de95 100644 --- a/examples/DimmableLEDActuator/DimmableLEDActuator.ino +++ b/examples/DimmableLEDActuator/DimmableLEDActuator.ino @@ -40,7 +40,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/DimmableLight/DimmableLight.ino b/examples/DimmableLight/DimmableLight.ino index e4bb52e..4d18d6c 100644 --- a/examples/DimmableLight/DimmableLight.ino +++ b/examples/DimmableLight/DimmableLight.ino @@ -34,7 +34,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/DustSensor/DustSensor.ino b/examples/DustSensor/DustSensor.ino index 35524e2..077276c 100644 --- a/examples/DustSensor/DustSensor.ino +++ b/examples/DustSensor/DustSensor.ino @@ -43,7 +43,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/DustSensorDSM/DustSensorDSM.ino b/examples/DustSensorDSM/DustSensorDSM.ino index 5dcaf54..b4c5eab 100644 --- a/examples/DustSensorDSM/DustSensorDSM.ino +++ b/examples/DustSensorDSM/DustSensorDSM.ino @@ -35,7 +35,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino b/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino index 0ae30df..0c495f6 100644 --- a/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino +++ b/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino @@ -39,7 +39,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/GatewayESP8266/GatewayESP8266.ino b/examples/GatewayESP8266/GatewayESP8266.ino index 2e0b9b8..b8c277b 100644 --- a/examples/GatewayESP8266/GatewayESP8266.ino +++ b/examples/GatewayESP8266/GatewayESP8266.ino @@ -74,6 +74,7 @@ // Enables and select radio type (if attached) #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #define MY_GATEWAY_ESP8266 diff --git a/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino b/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino index 01246c9..0cc91ca 100644 --- a/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino +++ b/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino @@ -66,6 +66,7 @@ // Enables and select radio type (if attached) #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #define MY_GATEWAY_MQTT_CLIENT #define MY_GATEWAY_ESP8266 diff --git a/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino b/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino index 573525b..fc61b6b 100644 --- a/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino +++ b/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino @@ -77,6 +77,7 @@ // Enables and select radio type (if attached) #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #define MY_GATEWAY_ESP8266 diff --git a/examples/GatewaySerial/GatewaySerial.ino b/examples/GatewaySerial/GatewaySerial.ino index 7ddcdbf..f7bc2f3 100644 --- a/examples/GatewaySerial/GatewaySerial.ino +++ b/examples/GatewaySerial/GatewaySerial.ino @@ -42,7 +42,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 // Set LOW transmit power level as default, if you have an amplified NRF-module and // power your radio separately with a good regulator you can turn up PA level. diff --git a/examples/GatewayW5100/GatewayW5100.ino b/examples/GatewayW5100/GatewayW5100.ino index b5bb906..f423529 100644 --- a/examples/GatewayW5100/GatewayW5100.ino +++ b/examples/GatewayW5100/GatewayW5100.ino @@ -46,7 +46,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 // Enable gateway ethernet module type #define MY_GATEWAY_W5100 diff --git a/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino b/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino index a0fe25c..df270f7 100644 --- a/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino +++ b/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino @@ -64,6 +64,7 @@ // Enables and select radio type (if attached) #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #define MY_GATEWAY_MQTT_CLIENT diff --git a/examples/LightSensor/LightSensor.ino b/examples/LightSensor/LightSensor.ino index 45a8ded..e249e2c 100644 --- a/examples/LightSensor/LightSensor.ino +++ b/examples/LightSensor/LightSensor.ino @@ -31,7 +31,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/MockMySensors/MockMySensors.ino b/examples/MockMySensors/MockMySensors.ino index 1973692..de375b5 100644 --- a/examples/MockMySensors/MockMySensors.ino +++ b/examples/MockMySensors/MockMySensors.ino @@ -11,7 +11,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #define MY_NODE_ID 254 diff --git a/examples/MotionSensor/MotionSensor.ino b/examples/MotionSensor/MotionSensor.ino index c7cd1e5..0deb09e 100644 --- a/examples/MotionSensor/MotionSensor.ino +++ b/examples/MotionSensor/MotionSensor.ino @@ -32,7 +32,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/PHSensor/PHSensor.ino b/examples/PHSensor/PHSensor.ino index 8bda2fe..ce86255 100644 --- a/examples/PHSensor/PHSensor.ino +++ b/examples/PHSensor/PHSensor.ino @@ -27,7 +27,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/PassiveNode/PassiveNode.ino b/examples/PassiveNode/PassiveNode.ino index 03dde04..7ff1ca7 100644 --- a/examples/PassiveNode/PassiveNode.ino +++ b/examples/PassiveNode/PassiveNode.ino @@ -37,6 +37,7 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 //#define MY_RADIO_RFM95 diff --git a/examples/PingPongSensor/PingPongSensor.ino b/examples/PingPongSensor/PingPongSensor.ino index 7f7023a..593757b 100644 --- a/examples/PingPongSensor/PingPongSensor.ino +++ b/examples/PingPongSensor/PingPongSensor.ino @@ -13,7 +13,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include #include "MYSLog.h" @@ -103,4 +105,4 @@ const char * msgTypeAsCharRepresentation( mysensor_data mType ) const char * nodeTypeAsCharRepresentation( uint8_t node ) { return node == YING ? "Ying Node" : "Yang Node"; -} \ No newline at end of file +} diff --git a/examples/RelayActuator/RelayActuator.ino b/examples/RelayActuator/RelayActuator.ino index 713b8af..c15dd48 100644 --- a/examples/RelayActuator/RelayActuator.ino +++ b/examples/RelayActuator/RelayActuator.ino @@ -32,7 +32,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 // Enable repeater functionality for this node #define MY_REPEATER_FEATURE diff --git a/examples/RepeaterNode/RepeaterNode.ino b/examples/RepeaterNode/RepeaterNode.ino index ec76847..bee56d3 100644 --- a/examples/RepeaterNode/RepeaterNode.ino +++ b/examples/RepeaterNode/RepeaterNode.ino @@ -33,7 +33,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 // Enabled repeater feature for this node #define MY_REPEATER_FEATURE diff --git a/examples/SecretKnockSensor/SecretKnockSensor.ino b/examples/SecretKnockSensor/SecretKnockSensor.ino index 9cb40ed..b473937 100644 --- a/examples/SecretKnockSensor/SecretKnockSensor.ino +++ b/examples/SecretKnockSensor/SecretKnockSensor.ino @@ -56,7 +56,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/SecureActuator/SecureActuator.ino b/examples/SecureActuator/SecureActuator.ino index ac4844f..38b80fa 100644 --- a/examples/SecureActuator/SecureActuator.ino +++ b/examples/SecureActuator/SecureActuator.ino @@ -47,7 +47,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 //!< NRF24L01 radio driver +//#define MY_RADIO_NRF5_ESB //!< nRF5 radio driver (NRF24 compatible) //#define MY_RADIO_RFM69 //!< RFM69 radio driver +//#define MY_RADIO_RFM95 //!< RFM95 radio driver // Select soft/hardware signing method #define MY_SIGNING_SOFT //!< Software signing diff --git a/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino b/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino index 9fb96bc..1a62255 100644 --- a/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino +++ b/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino @@ -42,7 +42,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 // Set LOW transmit power level as default, if you have an amplified NRF-module and // power your radio separately with a good regulator you can turn up PA level. @@ -276,4 +278,4 @@ bool testAnalog() } Serial.println(" Passed"); return true; -} \ No newline at end of file +} diff --git a/examples/SoilMoistSensor/SoilMoistSensor.ino b/examples/SoilMoistSensor/SoilMoistSensor.ino index ba2b247..f8a9c86 100644 --- a/examples/SoilMoistSensor/SoilMoistSensor.ino +++ b/examples/SoilMoistSensor/SoilMoistSensor.ino @@ -65,7 +65,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include // Conversion equation from resistance to % #include @@ -193,4 +195,4 @@ long average() sum += buffer[i]; } return (long)(sum / NUM_READS); -} \ No newline at end of file +} diff --git a/examples/UVSensor/UVSensor.ino b/examples/UVSensor/UVSensor.ino index 0a6ea52..0dc5a76 100644 --- a/examples/UVSensor/UVSensor.ino +++ b/examples/UVSensor/UVSensor.ino @@ -41,7 +41,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include diff --git a/examples/VibrationSensor/VibrationSensor.ino b/examples/VibrationSensor/VibrationSensor.ino index a07d7bd..2ebe342 100644 --- a/examples/VibrationSensor/VibrationSensor.ino +++ b/examples/VibrationSensor/VibrationSensor.ino @@ -37,7 +37,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include #include diff --git a/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino b/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino index fbf99e0..36c0605 100644 --- a/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino +++ b/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino @@ -39,7 +39,9 @@ // Enable and select radio type attached #define MY_RADIO_NRF24 +//#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 +//#define MY_RADIO_RFM95 #include