mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 12:19:49 +03:00
polling of contacts fixed
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user