def on_touch_up( self, touch ):
global minUITimer
global lightOffTimer
if touch.grab_current is self:
touch.ungrab( self )
with thermostatLock:
Clock.unschedule( light_off )
if minUITimer != None:
Clock.unschedule( show_minimal_ui )
minUITimer = Clock.schedule_once( show_minimal_ui, minUITimeout )
lighOffTimer = Clock.schedule_once( light_off, lightOff )
GPIO.output( lightPin, GPIO.HIGH )
self.manager.current = "thermostatUI"
log( LOG_LEVEL_DEBUG, CHILD_DEVICE_SCREEN, MSG_SUBTYPE_TEXT, "Full" )
return True
##############################################################################
# #
# Kivy Thermostat App class #
# #
##############################################################################
评论列表
文章目录