Esempio n. 1
0
def stats():
    lcd.cls()
    lcd.locate(0,0)
    lcd.text(cpu_usage())
    lcd.locate(0,1)
    lcd.text(mem_usage())
    lcd.locate(0,2)
    lcd.text(disk_usage('/'))
    lcd.locate(0,3)
    lcd.text(network('wlan7'))
    lcd.locate(0,4)
Esempio n. 2
0
def demo():
    lcd.locate(0,0)
    lcd.text("TEST")        
Esempio n. 3
0
print('Frozen Python to test LCD 5110.\n')
import lcd
import time
lcd.init()
time.init()
lcd.setfont(lcd.large)
lcd.text(0, 0, 'TIVA C')
lcd.setfont(lcd.small)
lcd.text(0, 2, 'MicroPython')
lcd.text(0, 3, 'LCD 5110')
exit = 3
while exit > 0:
    lcd.inversevideo(1)
    time.sleep_ms(500)
    lcd.inversevideo(0)
    time.sleep_ms(500)
    exit = exit - 1