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

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

src/r/a/RaspberryPiLcdMenu-HEAD/lcdmenu.py   RaspberryPiLcdMenu(Download)
 
lcd.begin(DISPLAY_COLS, DISPLAY_ROWS)
lcd.backlight(lcd.OFF)
 
# commands
        if lcd.buttonPressed(lcd.SELECT):
            lcd.clear()
            lcd.backlight(lcd.OFF)
            quit()
        sleep(0.25)
        if lcd.buttonPressed(lcd.SELECT):
            lcd.clear()
            lcd.backlight(lcd.OFF)
            commands.getoutput("sudo shutdown -h now")
            quit()
        if lcd.buttonPressed(lcd.SELECT):
            lcd.clear()
            lcd.backlight(lcd.OFF)
            commands.getoutput("sudo reboot")
            quit()
        sleep(0.25)
 
def LcdOff():
    lcd.backlight(lcd.OFF)

src/a/l/alarm-clock-HEAD/alarm_clock.py   alarm-clock(Download)
def init_display():
    lcd.clear()
    lcd.backlight(lcd.YELLOW)
    lcd.message("JamesClonk's\nAlarm Clock!")
    sleep(2)
    lcd.backlight(lcd.VIOLET)
def load_data():
    # only display loading message in current time menu, as to not disturb the "nothing" menu
    if (menu_state == SHOW_CURRENT_TIME):
        lcd.clear()
        lcd.backlight(lcd.BLUE)
def shutdown_pi():
    lcd.clear()
    lcd.backlight(lcd.RED)
    lcd.message("shutting down..")
    sleep(1)
def switch_to_menu_time_display():
    global menu_state, minutes
    lcd.clear()
    lcd.backlight(lcd.VIOLET)
    menu_state = SHOW_CURRENT_TIME

src/p/y/Python-WiFi-Radio-HEAD/PiPhi.py   Python-WiFi-Radio(Download)
def cleanExit():
    if lcd is not None:
        time.sleep(0.5)
        lcd.backlight(lcd.OFF)
        lcd.clear()
def shutdown():
    lcd.clear()
    if HALT_ON_EXIT:
        if RGB_LCD: lcd.backlight(lcd.YELLOW)
        lcd.message('Wait 30 seconds\nto unplug...')
    if (time.time() - t) > 120:
        # No connection reached after 2 minutes
        if RGB_LCD: lcd.backlight(lcd.RED)
        lcd.message('Network is\nunreachable')
        time.sleep(30)
        exit(0)
    try:
        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        s.connect(('8.8.8.8', 0))
        if RGB_LCD: lcd.backlight(lcd.GREEN)
        s.connect(('8.8.8.8', 0))
        if RGB_LCD: lcd.backlight(lcd.GREEN)
        else:       lcd.backlight(lcd.ON)
        lcd.message('My IP address is\n' + s.getsockname()[0])
        time.sleep(5)

src/r/p/rpihacks-HEAD/Adafruit_CharLCDPlate/LCD-pi-plate-print-ip-addrs.py   rpihacks(Download)
# Clear display
lcd.clear()
lcd.backlight(lcd.ON)
 
# Init menu message

src/r/a/raspberry-pi_btc-ticker-HEAD/python_implimentation/goxstamp.py   raspberry-pi_btc-ticker(Download)
 
while 1:
	lcd.backlight(lcd.GREEN)
	lcd.clear()
	#Calls BTC function, gets time and formats.

src/r/p/rpi-timelapse-HEAD/LCDtest.py   rpi-timelapse(Download)
 
# first loop, just changes the color
lcd.backlight(lcd.RED)
sleep(.5)
lcd.backlight(lcd.YELLOW)
sleep(.5)
lcd.backlight(lcd.GREEN)
sleep(.5)
lcd.backlight(lcd.TEAL)
lcd.backlight(lcd.TEAL)
sleep(.5)
lcd.backlight(lcd.BLUE)
sleep(.5)
lcd.backlight(lcd.VIOLET)

src/r/p/rpihacks-HEAD/Adafruit_CharLCDPlate/LCDtest.py   rpihacks(Download)
       lcd.BLUE, lcd.VIOLET, lcd.ON   , lcd.OFF)
for c in col:
    lcd.backlight(c)
    sleep(.5)
 
                lcd.clear()
                lcd.message(b[1])
                lcd.backlight(b[2])
                prev = b
            break

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_CharLCDPlate/LCDtest.py   Adafruit-Raspberry-Pi-Python-Code(Download)
       lcd.BLUE, lcd.VIOLET, lcd.ON   , lcd.OFF)
for c in col:
    lcd.backlight(c)
    sleep(.5)
 
                lcd.clear()
                lcd.message(b[1])
                lcd.backlight(b[2])
                prev = b
            break