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() {
|
||||
if (!isValid()) return -1;
|
||||
if (inType & IN_PUSH_ON)
|
||||
contactPoll();
|
||||
else if (inType & IN_DHT22)
|
||||
if (inType & IN_DHT22)
|
||||
dht22Poll();
|
||||
/* example
|
||||
else if (inType & IN_ANALOG)
|
||||
analogPoll(); */
|
||||
else
|
||||
contactPoll();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -117,6 +117,8 @@ lib_deps =
|
||||
https://github.com/knolleary/pubsubclient.git
|
||||
https://github.com/anklimov/Artnet.git
|
||||
FastLED
|
||||
Adafruit Unified Sensor
|
||||
DHT sensor library
|
||||
|
||||
[env:due-5500]
|
||||
platform = atmelsam
|
||||
|
||||
Reference in New Issue
Block a user