Mercurial > code > home > repos > homeauto
diff service/thermostat/rpi_buttons.py @ 65:cbc557c35121
faster thermostat button polling. send updates to wallscreen (directly)
Ignore-this: 6259a882bbee19ef2dddd7f5b931890
author | drewp@bigasterisk.com |
---|---|
date | Wed, 10 Apr 2013 20:51:44 -0700 |
parents | 517bd1407ed6 |
children |
line wrap: on
line diff
--- a/service/thermostat/rpi_buttons.py Wed Apr 10 20:51:12 2013 -0700 +++ b/service/thermostat/rpi_buttons.py Wed Apr 10 20:51:44 2013 -0700 @@ -34,7 +34,7 @@ prev = None prevButton = 0 buttonHold = 0 -step = .05 +step = .02 while True: a, b = pinInput(PIN_KNOB_A), pinInput(PIN_KNOB_B) button = not pinInput(PIN_BUTTON)