menu/lcdmenu.py
def _touch(self):
        """
        Update the object indicating the user has interacted with it at this
        point in time. This is used to manage the backlight
        :return:
        """
        self._counter = 0
        self.lcd.backlight_on()

        # Set up a timer that will turn off the backlight after a short delay
        def dim():
            self._backlight_timer = None
            self._cancel_update_timer()
            self.lcd.backlight_off()

        self._cancel_backlight_timer()
        self._backlight_timer = Timer(BACKLIGHT_DELAY, dim)
        self._backlight_timer.start()

        Update the object indicating the user has interacted with it at this
        point in time. This is used to manage the backlight
        :return:
        
Update the object indicating the user has interacted with it at this
point in time. This is used to manage the backlight
Update the object indicating the user has interacted with it at this point in time . This is used to manage the backlight
def _touch(self):
        self._counter = 0
        self.lcd.backlight_on()
        def dim():
            self._backlight_timer = None
            self._cancel_update_timer()
            self.lcd.backlight_off()
        self._cancel_backlight_timer()
        self._backlight_timer = Timer(BACKLIGHT_DELAY, dim)
        self._backlight_timer.start()
def _touch ( self ) : self . _counter = 0 self . lcd . backlight_on ( ) def dim ( ) : self . _backlight_timer = None self . _cancel_update_timer ( ) self . lcd . backlight_off ( ) self . _cancel_backlight_timer ( ) self . _backlight_timer = Timer ( BACKLIGHT_DELAY , dim ) self . _backlight_timer . start ( )
Update the object indicating the user has interacted with it at this
point in time.
Update the object indicating the user has interacted with it at this point in time .
"""
        Update the object indicating the user has interacted with it at this
        point in time. This is used to manage the backlight
        :return:
        """ # Set up a timer that will turn off the backlight after a short delay
None
self