Browse Source

Temporary fix for Adafruit DHT library bug reported here: https://github.com/adafruit/DHT-sensor-library/issues/62

fastled
Xose Pérez 8 years ago
parent
commit
e4f78c274f
2 changed files with 13 additions and 12 deletions
  1. +12
    -12
      code/platformio.ini
  2. +1
    -0
      code/src/dht.ino

+ 12
- 12
code/platformio.ini View File

@ -4,7 +4,7 @@ env_default = node-debug
[env:sonoff-debug] [env:sonoff-debug]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF 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] [env:sonoff-debug-ota]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
@ -23,7 +23,7 @@ upload_flags = --auth=fibonacci --port 8266
[env:slampher-debug] [env:slampher-debug]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER 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] [env:slampher-debug-ota]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
@ -42,7 +42,7 @@ upload_flags = --auth=fibonacci --port 8266
[env:s20-debug] [env:s20-debug]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 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] [env:s20-debug-ota]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
@ -61,7 +61,7 @@ upload_flags = --auth=fibonacci --port 8266
[env:node-debug] [env:node-debug]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = nodemcuv2 board = nodemcuv2
build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial
@ -69,7 +69,7 @@ build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial
[env:node-debug-ota] [env:node-debug-ota]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = nodemcuv2 board = nodemcuv2
build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial
@ -83,7 +83,7 @@ upload_flags = --auth=fibonacci --port 8266
topic = /home/cellar/airconditioner/ip topic = /home/cellar/airconditioner/ip
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 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 topic = /home/cellar/washer/ip
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
upload_speed = 115200 upload_speed = 115200
@ -107,7 +107,7 @@ build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE
topic = /home/studio/lamp/ip topic = /home/studio/lamp/ip
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF 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 topic = /home/living/lamp/ip
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727
lib_install = 19,31,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF


+ 1
- 0
code/src/dht.ino View File

@ -10,6 +10,7 @@ Copyright (C) 2016 by Xose Pérez <xose dot perez at gmail dot com>
#if ENABLE_DHT #if ENABLE_DHT
#include <DHT.h> #include <DHT.h>
#include <Adafruit_Sensor.h>
DHT dht(DHT_PIN, DHT_TYPE, DHT_TIMING); DHT dht(DHT_PIN, DHT_TYPE, DHT_TIMING);


Loading…
Cancel
Save