rasp87
Posts: 94
Joined: Thu Jun 27, 2013 7:02 am

Getting started with a graphical LCD

Thu Oct 17, 2013 11:31 am

Hi all!
I've got a 'longtech optics' 128*128 graphical LCD (model: LGM128128-FL-YBS) and I wana interface with it using python language (+ tkinter). My program is going to have a simple graphical interface with some buttons, menus, functions and etc. I'm looking for some tutorials or examples to get started with this LCD and start creating my program. BTW, are LCDs different with each other in the way that they are programmed with python? Do we have standard libraries or sth to work with them?

Antares
Posts: 13
Joined: Thu Oct 03, 2013 10:09 pm

Re: Getting started with a graphical LCD

Thu Oct 17, 2013 10:33 pm

I posted a couple of days ago in the general forum explaining how to drive another small LCD in Python, and asking advice to speed up the code (so far, nobody has answered :( ), in this thread: http://www.raspberrypi.org/phpBB3/viewt ... 63&t=58291. If your display has similar inputs maybe you can use the code as a guide, but I don't think so,mine is based on the ILI9163 chip and yours seems to be different: I have googled for LGM128128-FL-YBS and it only appears in forums questions (I guess those are yours). I have found LGM128128A, B and C at Longtech Optics website http://www.longtech-display.com/PRODUTS ... module.htm, but not FL-YBS. Model A is based on the T6963C chip, and has graphic and text capabilities, but models B and C are 16 and 32 shades of gray displays, so if it's one of them, it will be model A. I have found also a datasheet for LGM128128A-FSW-FBW, at http://www.micro-research.co.th/Manual/ ... SW-FBW.pdf. It seems that is a 5V display also based on the T6963C,so you should use a level shifter. You can find the T6963C datasheet herehttp://www.lcd-module.de/fileadmin/eng/ ... t6963c.pdf, there you can find the chip commands an inputs. Hope that helps.

talkeasy
Posts: 38
Joined: Sun Nov 04, 2012 10:57 pm

Re: Getting started with a graphical LCD

Mon Oct 21, 2013 6:16 pm

Does anyone know if it is possible to write code in PHP for an LCD Module? The Interwebs are awash with examples in Python and C but not in PHP. Anyone done ths an able to post their code?

User avatar
paddyg
Posts: 2612
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: Getting started with a graphical LCD

Tue Oct 22, 2013 8:43 am

@talkeasy, there looks to be gpio from php so must be possible
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

talkeasy
Posts: 38
Joined: Sun Nov 04, 2012 10:57 pm

Re: Getting started with a graphical LCD

Tue Oct 22, 2013 8:56 am

paddyg wrote:@talkeasy, there looks to be gpio from php so must be possible
@paddyg - yes, good observation. I have used WiringPi-PHP on other GPIO projects. What I am struggling with is whether if and how this could be applied to control the LCD Module. The required coding is beyond my skill level.

User avatar
paddyg
Posts: 2612
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: Getting started with a graphical LCD

Tue Oct 22, 2013 10:27 am

Well @Antares has done a sterling job of converting a C library to python (as a non-trivial learning to code exercise) so it wouldn't be too bad to convert to php (less {;} to remove) but it's probably better to run the interface as a subprocess in some way.
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

rasp87
Posts: 94
Joined: Thu Jun 27, 2013 7:02 am

Re: Getting started with a graphical LCD

Sun Oct 27, 2013 11:06 am

talkeasy wrote:Does anyone know if it is possible to write code in PHP for an LCD Module?
PHP for driving an LCD? As far as I know PHP is commonly used for dynamic web programming with HTML and CSS. I don't consider it as good language for LCD purpose.

rasp87
Posts: 94
Joined: Thu Jun 27, 2013 7:02 am

Re: Getting started with a graphical LCD

Mon Nov 11, 2013 9:57 am

Antares wrote:I posted a couple of days ago in the general forum explaining how to drive another small LCD in Python, and asking advice to speed up the code (so far, nobody has answered :( ), in this thread: http://www.raspberrypi.org/phpBB3/viewt ... 63&t=58291. If your display has similar inputs maybe you can use the code as a guide, but I don't think so,mine is based on the ILI9163 chip and yours seems to be different: I have googled for LGM128128-FL-YBS and it only appears in forums questions (I guess those are yours). I have found LGM128128A, B and C at Longtech Optics website http://www.longtech-display.com/PRODUTS ... module.htm, but not FL-YBS. Model A is based on the T6963C chip, and has graphic and text capabilities, but models B and C are 16 and 32 shades of gray displays, so if it's one of them, it will be model A. I have found also a datasheet for LGM128128A-FSW-FBW, at http://www.micro-research.co.th/Manual/ ... SW-FBW.pdf. It seems that is a 5V display also based on the T6963C,so you should use a level shifter. You can find the T6963C datasheet herehttp://www.lcd-module.de/fileadmin/eng/ ... t6963c.pdf, there you can find the chip commands an inputs. Hope that helps.
Thank you for your information and code

Return to “Python”