Commit Graph

4 Commits

Author SHA1 Message Date
13d1ab1fa5 Add app.dht_gpio flag to find DHT sensors
Parse this comma separated string to find GPIO pins on which we must
enable DHT sensors.  Seperators are space and comma.
Can be empty, single GPIO pins, or a list:
app.dht_gpio=""
app.dht_gpio="5"
app.dht_gpio="5,4,14"
app.dht_gpio="5 4 14"
app.dht_gpio="5, 4 14"
2018-02-13 01:15:14 +01:00
bb62e9b6ae Add DHT support.
Very rough stab just to test the waters -- this will need some
more work.

For now, hard code 4,5,15 pins (as per Sonoff SV), but before
rolling this out, add a config flag for this behavior.

Neat trick -- the presence of dht library in mos.yml triggers
inclusion of the code via define -DMGOS_HAVE_DHT=1
2018-02-11 13:20:36 +01:00
a0909ab6a0 Blink statusled on recv/xmit MQTT messages; debounce 200ms; trigger button on release; Prime for sonoff-basic // sonoff-sv 2018-01-25 14:52:55 +01:00
4679636fdc Initial checkin. 2018-01-05 16:58:15 +01:00