I made my own change to the class so I can write to each line separately. I added this to end and removed the wrap around if statement in message. def Writeline(self,message,line): if line == 1: self.cmd(128) self.message(message) if line == 2: self.cmd(192) self.message(message) I find this better ...
Using this thread I managed to get a £2 (free delivery) 1602 LCD from china working off the GPIO's. https://dl.dropbox.com/u/1688196/2012-07-17%2010.35.24.jpg At first I could not get it to work but I realised I had forgot to tie RW to GND. The code supplied ...
Hey, after i tested the date and so on its very easy to write something to the Raspi. Now i got a ver simple Problem, when i write: lcd.message("example") then the lcd show me something like this: mple so it cuts the first characters, the reason for me was to write this: lcd.message(" example") ...
I know with my LCD it expects 16 characters exactly. So if it is less I have to pad it to 16 with spaces and if it is more I have to trim it to 16 or it will not display correctly. Maybe it's a similar thing?
Hey, after i tested the date and so on its very easy to write something to the Raspi. Now i got a ver simple Problem, when i write: lcd.message("example") then the lcd show me something like this: mple so it cuts the first characters, the reason for me was to write this: lcd.message(" example") ...
4 line test for 20x4. I posted ABCDEFGHIJKLMNOPQRST to all four lines and got all four lines back. Not being fully au fait with Python I was concerned there may be a code in there locking it to 16x2 as it was originally devised for that. I may have over written the 4 lines from 2 but not ...
Hey, i get it running and its fine. I used the class ;-) Thx lrvick. But now i want to write the date and time to my LCD, but i dont know how i can do that. Can anyone help me pls? Thx Tailer Here is a very simple clock using my class: from hd44780 import HD44780 from datetime import ...
... serious hardware playing done. This includes....an alpha-numeric 16x2 LCD display running off two GPIO pins....hopefully useful for debugging. ... more standardised SPI/Serial/I2C/GPIO libraries for C++ and modules ofr Python. A more standardised approach is the only LONG term prospect for educational ...
... serious hardware playing done. This includes....an alpha-numeric 16x2 LCD display running off two GPIO pins....hopefully useful for debugging. ... more standardised SPI/Serial/I2C/GPIO libraries for C++ and modules ofr Python. A more standardised approach is the only LONG term prospect for educational ...
... serious hardware playing done. This includes....an alpha-numeric 16x2 LCD display running off two GPIO pins....hopefully useful for debugging. ... more standardised SPI/Serial/I2C/GPIO libraries for C++ and modules ofr Python. A more standardised approach is the only LONG term prospect for educational ...
Just an FYI. If you`re using Python as per the program Texy made up it worked perfectly for me even though it was constructed with a 16x2 LCD Module in mind. Mine is a 4x20 and though I haven`t checked for 20 characters on each line (0-19) ...
... Texy did the 16x2 in Python code and I merely amended it roughly (work in progress) for my 20x4 LCD Module to work in Python code. My description of the hardware connection process is here ...
Woo hoo, a Eureka moment! When using 4 lines eg 20x4 LCD. Each start of the line is addressed by; Line 1 = 0 (128) Line 2 = 64 (192) ... yet but at least we have a start). Rome wasn`t built in a day. #!/usr/bin/python # -*- coding: utf-8 -*- # # gpio_play6.py # Texy 2012 import RPi.GPIO as ...
... terms but I`ll get there eventually. If anyone else wires up a 20x4 LCD and uses Python please post what you did and how you programmed it. I know once I get started I`ll be ...
... I am scaring myself out of it quicker than I need to. I know a bit of python and would like to drive things, at the very least, through a LCD (i.e. old school LCD display, not a monitor) so I can display some information from my ...
No I didn't, or at least I haven't yet. However, the RPi.GPIO module has been upgraded and is considerably faster, if you use the existing LCD code, and update the RPi.GPIO function, you'll find it will be much improved.
... of the code works with the for loop to SPI out, but shiftOut isn't working. However, I have noticed that sometimes grabbled graphics appear on the LCD, so maybe it is now working, but too fast? Is it possible to put the delay option back in to the shiftOut function? This is with the wiringpi.wiringPiSetupGpio() ...
In my case I have a 3.3v version of the Hd33780 LCD which I wired up like so: http://i.imgur.com/OGcb2.jpg (excuse the terrible ... Will probably port to WiringPi this weekend and make it into a proper python library. See: https://github.com/lrvick/raspi-hd44780 Also here is an example ...