Lestat85
Posts: 5
Joined: Wed Feb 20, 2013 6:15 pm

Re: Nokia Pi LCD

Wed Feb 12, 2014 4:32 pm

I've made a little daemon to show some system (system load and network ip) and router info (adsl speed and public ip, vodafone hg556a only).

The code is at gihub: https://github.com/vrdominguez/lcd-daemon

I've made it because I want to learn python, so any comment or advise is welcome

zelib0ba
Posts: 1
Joined: Tue Mar 17, 2015 12:10 pm

Re: Nokia Pi LCD

Tue Mar 17, 2015 12:19 pm

Help plz.
I can't connect this display Imageto Rpi B+
c code work(https://www.dropbox.com/s/2f9s74ai0bxj7kp/cpu.zip?dl=0 ,but the python code from this topic does not work

magnus2005
Posts: 6
Joined: Sat Mar 05, 2016 9:50 pm

Re: Nokia Pi LCD

Sat Mar 05, 2016 10:41 pm

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?

fabertel
Posts: 1
Joined: Mon Sep 26, 2016 11:55 am

Re: Nokia Pi LCD

Mon Sep 26, 2016 9:40 pm

hi ! not sure if this thread is already active . i was finally able to make the display work using this
https://github.com/XavierBerger/pcd8544

But I have 2 issues :
1) i cannot user the gotoxy command . it never goes beyond the 4*4 position .
2) the lcd.centre_text behaviour is random . writing below concatenates the string in same record ..

lcd.centre_text(5,time.strftime("%d %b %Y", time.localtime()))
lcd.centre_text(6,time.strftime("%H:%M:%S", time.localtime()))

Return to “Python”