hello,
I have a problem with displays center text. when I am running example of xavier berger lib clock.py almost everything is displaing ok except 3th line where hour I dont know why is at 2th line. but when I change value string from date and time to own text and add another line there is a problem. text disnt display at center but like lcd. text.
changed clock.py file to my code:
Code: Select all
import pcd8544.lcd as lcd
import time, os, sys
if not os.geteuid() == 0:
sys.exit('Script must be run as root')
ON, OFF = [1, 0]
try:
lcd.init()
lcd.cls()
lcd.backlight(ON)
lcd.centre_text(0,"PROBLEM")
lcd.centre_text(1,"PROBLEM")
lcd.centre_text(2, "TXT"
lcd.centre_text(3,"HI")
lcd.centre_text(4,"PROBLEM")
time.sleep(0.25)
except KeyboardInterrupt:
pass
finally:
lcd.cls()
lcd.backlight(OFF)
http://imgur.com/pCXQvkL anyone helps?
and one more question, why at lcd. py in gotoxy there is x+128, y+64?