diff --git a/examples/AirQualitySensor/AirQualitySensor.ino b/examples/AirQualitySensor/AirQualitySensor.ino index bdf77d0b..93fd8be7 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 4fe41d8f..e271c5f2 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 5e77f486..8ba3e011 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 9a8fb98e..73670efd 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 4e5c35bd..d64de95b 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 e4bb52e0..4d18d6cf 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 35524e2c..077276cc 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 5dcaf549..b4c5eaba 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 0ae30dfb..0c495f67 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 2e0b9b89..b8c277b6 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 01246c90..0cc91cad 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 573525b7..fc61b6ba 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 7ddcdbfb..f7bc2f30 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 b5bb906f..f4235294 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 a0fe25c3..df270f7d 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 45a8ded2..e249e2c3 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 19736927..de375b55 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 c7cd1e58..0deb09e2 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 8bda2fe4..ce862550 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 03dde046..7ff1ca76 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 7f7023ad..593757ba 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 713b8af4..c15dd487 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 ec768476..bee56d3b 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 9cb40edc..b4739370 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 ac4844f2..38b80faa 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 9fb96bca..1a62255f 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 ba2b247d..f8a9c864 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 0a6ea524..0dc5a765 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 a07d7bde..2ebe3424 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 fbf99e09..36c06059 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