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)
        if lcd.buttonPressed(lcd.LEFT):
            break
        if lcd.buttonPressed(lcd.SELECT):
            lcd.clear()
            lcd.backlight(lcd.OFF)
        if lcd.buttonPressed(lcd.LEFT):
            break
        if lcd.buttonPressed(lcd.SELECT):
            lcd.clear()
            lcd.backlight(lcd.OFF)
        if lcd.buttonPressed(lcd.LEFT):
            break
        if lcd.buttonPressed(lcd.SELECT):
            lcd.clear()
            lcd.backlight(lcd.OFF)
                return
            lcd.setCursor(curc[current], curr[current])
        if lcd.buttonPressed(lcd.SELECT):
            # set the date time in the system
            lcd.noBlink()
        if lcd.buttonPressed(lcd.LEFT):
            break
        if lcd.buttonPressed(lcd.SELECT):
            # uncomment the following once you have a separate network defined
            #commands.getoutput("sudo cp /etc/network/interfaces.hub.10 /etc/network/interfaces")

src/a/l/alarm-clock-HEAD/alarm_clock.py   alarm-clock(Download)
        show_time()
 
    elif (lcd.buttonPressed(lcd.SELECT)):
        switch_to_menu_alarm_times()
 
        switch_to_menu_time_display()
 
    elif (lcd.buttonPressed(lcd.SELECT)):
        switch_to_menu_nothing()
 
def menu_alarm_running():
    # switch back to time display after 300 seconds of alarm, or if select is pressed
    if (time.time() >= timestamp + 300) or (lcd.buttonPressed(lcd.SELECT)):
        stop_alarm()
        switch_to_menu_time_display()
def menu_nothing():
    if (datetime.now().hour != hours):
        load_data()
 
    elif (lcd.buttonPressed(lcd.SELECT)):

src/p/y/Python-WiFi-Radio-HEAD/PiPhi.py   Python-WiFi-Radio(Download)
    btnLeft  = b & (1 <<lcd.LEFT)
    btnRight = b & (1 <<lcd.RIGHT)
    btnSel   = b & (1 <<lcd.SELECT)
 
    # Certain button actions occur regardless of current mode.
    # Holding the select button (for shutdown) is a big one.
    if btnSel:
 
        t = time.time()                        # Start time of button press
        while lcd.buttonPressed(lcd.SELECT):   # Wait for button release

src/r/p/rpihacks-HEAD/Adafruit_CharLCDPlate/LCD-pi-plate-print-ip-addrs.py   rpihacks(Download)
       (lcd.DOWN, ipaddr_for_device('wlan0')),
       (lcd.RIGHT, menu_msg),
       (lcd.SELECT, menu_msg))
 
# Loop forever, change when any button is pressed.

src/r/p/rpihacks-HEAD/Adafruit_CharLCDPlate/LCDtest.py   rpihacks(Download)
       (lcd.DOWN  , 'I see fields\nof green'    , lcd.GREEN),
       (lcd.RIGHT , 'Purple mountain\nmajesties', lcd.VIOLET),
       (lcd.SELECT, ''                          , lcd.ON))
prev = -1
while True:

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_CharLCDPlate/LCDtest.py   Adafruit-Raspberry-Pi-Python-Code(Download)
       (lcd.DOWN  , 'I see fields\nof green'    , lcd.GREEN),
       (lcd.RIGHT , 'Purple mountain\nmajesties', lcd.VIOLET),
       (lcd.SELECT, ''                          , lcd.ON))
prev = -1
while True:

src/r/p/rpi-timelapse-HEAD/LCDtest.py   rpi-timelapse(Download)
		lcd.backlight(lcd.VIOLET)
 
	if (lcd.buttonPressed(lcd.SELECT)):
		lcd.clear()
		lcd.backlight(lcd.ON)