diff --git a/code/platformio.ini b/code/platformio.ini index 5206d774..fa07d532 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -4,7 +4,7 @@ env_default = node-debug [env:sonoff-debug] platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF @@ -12,7 +12,7 @@ build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF [env:sonoff-debug-ota] platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF @@ -23,7 +23,7 @@ upload_flags = --auth=fibonacci --port 8266 [env:slampher-debug] platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER @@ -31,7 +31,7 @@ build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER [env:slampher-debug-ota] platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER @@ -42,7 +42,7 @@ upload_flags = --auth=fibonacci --port 8266 [env:s20-debug] platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 @@ -50,7 +50,7 @@ build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 [env:s20-debug-ota] platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 @@ -61,7 +61,7 @@ upload_flags = --auth=fibonacci --port 8266 [env:node-debug] platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = nodemcuv2 build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial @@ -69,7 +69,7 @@ build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial [env:node-debug-ota] platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = nodemcuv2 build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial @@ -83,7 +83,7 @@ upload_flags = --auth=fibonacci --port 8266 topic = /home/cellar/airconditioner/ip platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 @@ -95,7 +95,7 @@ upload_flags = --auth=fibonacci --port 8266 topic = /home/cellar/washer/ip platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m upload_speed = 115200 @@ -107,7 +107,7 @@ build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE topic = /home/studio/lamp/ip platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF @@ -119,7 +119,7 @@ upload_flags = --auth=fibonacci --port 8266 topic = /home/living/lamp/ip platform = espressif8266 framework = arduino -lib_install = 19,44,64,89,549,727 +lib_install = 19,31,44,64,89,549,727 extra_script = pio_hooks.py board = esp01_1m build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF diff --git a/code/src/dht.ino b/code/src/dht.ino index 732012d2..a1af8d2a 100644 --- a/code/src/dht.ino +++ b/code/src/dht.ino @@ -10,6 +10,7 @@ Copyright (C) 2016 by Xose PĂ©rez #if ENABLE_DHT #include +#include DHT dht(DHT_PIN, DHT_TYPE, DHT_TIMING);