You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
647 B

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pertelian, time
display = pertelian.Display("/dev/ttyUSB1")
display.clear()
display.lcdprintln("BOXTEC PERTELIAN LIB boxtec pertelian lib")
display.lcdprintln("BOXTEC PERTELIAN LIB")
display.lcdprintln("BOXTEC PERTELIAN LIB")
display.lcdprintln("BOXTEC PERTELIAN LIB")
display.lcdscroll()
time.sleep(3)
display.clear()
test_string = "Welcome to my X2040"
for i in range(0,len(test_string)):
display.lcdcursor_set(2,i)
display.lcdprint(test_string[i])
time.sleep(0.1)
for i in range(0,5):
display.backlight(True)
time.sleep(0.3)
display.backlight(False)
time.sleep(0.25)