polling of contacts fixed

This commit is contained in:
2018-06-30 13:46:22 +03:00
parent fa864bd9f7
commit 34c618db72
2 changed files with 8 additions and 3 deletions

View File

@@ -88,10 +88,13 @@ void Input::Parse()
int Input::poll() { int Input::poll() {
if (!isValid()) return -1; if (!isValid()) return -1;
if (inType & IN_PUSH_ON) if (inType & IN_DHT22)
contactPoll();
else if (inType & IN_DHT22)
dht22Poll(); dht22Poll();
/* example
else if (inType & IN_ANALOG)
analogPoll(); */
else
contactPoll();
return 0; return 0;
} }

View File

@@ -117,6 +117,8 @@ lib_deps =
https://github.com/knolleary/pubsubclient.git https://github.com/knolleary/pubsubclient.git
https://github.com/anklimov/Artnet.git https://github.com/anklimov/Artnet.git
FastLED FastLED
Adafruit Unified Sensor
DHT sensor library
[env:due-5500] [env:due-5500]
platform = atmelsam platform = atmelsam