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

All Samples(49)  |  Call(49)  |  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):
            break
        if lcd.buttonPressed(lcd.SELECT):
def DoShutdown():
    lcd.clear()
    lcd.message('Are you sure?\nPress Sel for Y')
    while 1:
        if lcd.buttonPressed(lcd.LEFT):
            break
        if lcd.buttonPressed(lcd.SELECT):
def DoReboot():
    lcd.clear()
    lcd.message('Are you sure?\nPress Sel for Y')
    while 1:
        if lcd.buttonPressed(lcd.LEFT):

src/a/l/alarm-clock-HEAD/alarm_clock.py   alarm-clock(Download)
        show_time()
 
    elif (lcd.buttonPressed(lcd.SELECT)):
        switch_to_menu_alarm_times()
 
    elif (lcd.buttonPressed(lcd.UP)):
        time_menu_up()
 
    elif (lcd.buttonPressed(lcd.DOWN)):
        time_menu_down()
 
    elif (lcd.buttonPressed(lcd.LEFT)):
        time_menu_left()
 
    elif (lcd.buttonPressed(lcd.RIGHT)):

src/r/p/rpihacks-HEAD/Adafruit_CharLCDPlate/LCD-pi-plate-print-ip-addrs.py   rpihacks(Download)
while True:
    for b in btn:
        if lcd.buttonPressed(b[0]):
           lcd.clear()
           lcd.message(b[1])

src/p/y/Python-WiFi-Radio-HEAD/PiPhi.py   Python-WiFi-Radio(Download)
 
        t = time.time()                        # Start time of button press
        while lcd.buttonPressed(lcd.SELECT):   # Wait for button release
            if (time.time() - t) >= HOLD_TIME: # Extended hold?
                shutdown()                     # We're outta here

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")
		lcd.backlight(lcd.RED)
 
	if (lcd.buttonPressed(lcd.UP)):
		lcd.backlight(lcd.BLUE)
 
	if (lcd.buttonPressed(lcd.DOWN)):
		lcd.clear()
		lcd.message("I see fields\nof green");
		lcd.backlight(lcd.GREEN)
 
	if (lcd.buttonPressed(lcd.RIGHT)):
		lcd.backlight(lcd.VIOLET)
 
	if (lcd.buttonPressed(lcd.SELECT)):
		lcd.clear()
		lcd.backlight(lcd.ON)

src/r/p/rpihacks-HEAD/Adafruit_CharLCDPlate/LCDtest.py   rpihacks(Download)
while True:
    for b in btn:
        if lcd.buttonPressed(b[0]):
            if b is not prev:
                lcd.clear()

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_CharLCDPlate/LCDtest.py   Adafruit-Raspberry-Pi-Python-Code(Download)
while True:
    for b in btn:
        if lcd.buttonPressed(b[0]):
            if b is not prev:
                lcd.clear()