-
Notifications
You must be signed in to change notification settings - Fork 3
examples
jelena1802 edited this page Aug 20, 2019
·
13 revisions
Check examples folder
1. basic_OnOff
- variable
last_active_state
for DEVICE_PIN is set to reverse state to accommodate debugging on built-in LEDs on ESP8266. If you want to avoid using reverse logic on GPIO pin to control external devices, make sure to change that variable (it has a//reverse state pin
comment next to it).
2. basic_OnOffEthernet
- Find the source file in Arduino/libraries/homecontrol_mqtt/src/arduinoWrapper (ArduinoConfig.h) and uncomment the
#define
line that you want to use. Make sure to return the file to its original state after you're done, otherwise you will not be able to compile any other example.
3. basic_Level
- variable
last_active_state
for DEVICE_PIN is set to reverse state to accommodate debugging on built-in LEDs on ESP8266. If you want to avoid using reverse logic on GPIO pin to control external devices, make sure to change that variable (it has a//reverse state pin
comment next to it).
4. basic_Motion
- variable
last_active_state
for DEVICE_PIN is set to reverse state to accommodate debugging on built-in LEDs on ESP8266. If you want to avoid using reverse logic on GPIO pin to control external devices, make sure to change that variable (it has a//reverse state pin
comment next to it).
5. advanced_multiOnOff
- variable
last_active_state
for DEVICE_PIN is set to reverse state to accommodate debugging on built-in LEDs on ESP8266. If you want to avoid using reverse logic on GPIO pin to control external devices, make sure to change that variable (it has a//reverse state pin
comment next to it). - find the source file in Arduino/libraries (ArduinoConfig.h) and uncomment the
#define
line that you want to use. Make sure to return the file to its original state after you're done, otherwise you will not be able to compile any other example. (only necessary when uploading the sketch to Arduino boards)
6. basic_Temperature
- needs Adafruit DHT Temperature and Humidity Library and Adafruit Unified Sensor to work with DHT11 and DHT22 sensors.
7. basic_TemperatureTarget_OnOff
- needs Adafruit DHT Temperature and Humidity Library and Adafruit Unified Sensor to work with DHT11 and DHT22 sensors.