Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/r/a/RaspberryPiLcdMenu-HEAD/lcdmenu.py   RaspberryPiLcdMenu(Download)
def DoQuit():
    lcd.clear()
    lcd.message('Are you sure?\nPress Sel for Y')
    while 1:
        if lcd.buttonPressed(lcd.LEFT):
def DoShutdown():
    lcd.clear()
    lcd.message('Are you sure?\nPress Sel for Y')
    while 1:
        if lcd.buttonPressed(lcd.LEFT):
def DoReboot():
    lcd.clear()
    lcd.message('Are you sure?\nPress Sel for Y')
    while 1:
        if lcd.buttonPressed(lcd.LEFT):
def ShowDateTime():
    if DEBUG:
        print('in ShowDateTime')
    lcd.clear()
    while not(lcd.buttonPressed(lcd.LEFT)):
                current = 5
            lcd.setCursor(curc[current], curr[current])
        if lcd.buttonPressed(lcd.LEFT):
            current -= 1
            if current < 0:

src/a/l/alarm-clock-HEAD/alarm_clock.py   alarm-clock(Download)
        time_menu_down()
 
    elif (lcd.buttonPressed(lcd.LEFT)):
        time_menu_left()
 
        alarm_menu_down()
 
    elif (lcd.buttonPressed(lcd.LEFT)):
        alarm_menu_left()
 
        switch_to_menu_time_display()
 
    elif (lcd.buttonPressed(lcd.LEFT)) and (lcd.buttonPressed(lcd.RIGHT)):
        shutdown_pi()
 
        switch_to_menu_time_display()
 
    elif (lcd.buttonPressed(lcd.LEFT)) and (lcd.buttonPressed(lcd.RIGHT)):
        shutdown_pi()
 

src/r/p/rpihacks-HEAD/Adafruit_CharLCDPlate/LCD-pi-plate-print-ip-addrs.py   rpihacks(Download)
 
# Change the message based on the button
btn = ((lcd.LEFT, menu_msg),
       (lcd.UP, ipaddr_for_device('eth0')),
       (lcd.DOWN, ipaddr_for_device('wlan0')),

src/p/y/Python-WiFi-Radio-HEAD/PiPhi.py   Python-WiFi-Radio(Download)
    btnUp    = b & (1 << lcd.UP)
    btnDown  = b & (1 <<lcd.DOWN)
    btnLeft  = b & (1 <<lcd.LEFT)
    btnRight = b & (1 <<lcd.RIGHT)
    btnSel   = b & (1 <<lcd.SELECT)

src/r/p/rpi-timelapse-HEAD/LCDtest.py   rpi-timelapse(Download)
 
while 1:
	if (lcd.buttonPressed(lcd.LEFT)):
		lcd.clear()
		lcd.message("Red Red Wine")

src/r/p/rpihacks-HEAD/Adafruit_CharLCDPlate/LCDtest.py   rpihacks(Download)
 
# Poll buttons, display message & set backlight accordingly
btn = ((lcd.LEFT  , 'Red Red Wine'              , lcd.RED),
       (lcd.UP    , 'Sita sings\nthe blues'     , lcd.BLUE),
       (lcd.DOWN  , 'I see fields\nof green'    , lcd.GREEN),

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_CharLCDPlate/LCDtest.py   Adafruit-Raspberry-Pi-Python-Code(Download)
 
# Poll buttons, display message & set backlight accordingly
btn = ((lcd.LEFT  , 'Red Red Wine'              , lcd.RED),
       (lcd.UP    , 'Sita sings\nthe blues'     , lcd.BLUE),
       (lcd.DOWN  , 'I see fields\nof green'    , lcd.GREEN),