Crystalfonts 4 x 16 help
TC
Posts: 1,019
Hello all,
I just bought a display from Crystalfonts. But I am having trouble gitting it to work. I am using "Improve LCD Demo" from Steve Almond. I changed LINELENGHT from 20 to 16. when the demo runs I get jerbish on the display, also only lines 1 & 3 are lit. as the demo starts up you can see all 4 lines activate, but then 1 & 3 are on. I am still learning to program in SPIN so please be easy on me. I have included the datasheat for my display.
thanks
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
I just bought a display from Crystalfonts. But I am having trouble gitting it to work. I am using "Improve LCD Demo" from Steve Almond. I changed LINELENGHT from 20 to 16. when the demo runs I get jerbish on the display, also only lines 1 & 3 are lit. as the demo starts up you can see all 4 lines activate, but then 1 & 3 are on. I am still learning to program in SPIN so please be easy on me. I have included the datasheat for my display.
thanks
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
Comments
Change that in your driver...
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
This is an excellent idea!
But I also post a driver by Marcel Majoor, which I configured for a four line display in nibble mode. Works fine!
Edit:
I think I also changed the control pins
The original driver had 8,9, and 10, which is more logical... but you can of course use whatever pins you like
Post Edited (deSilva) : 8/8/2007 3:30:19 PM GMT
Thanks
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
Post Edited (TC) : 8/8/2007 11:59:25 PM GMT
thanks
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
Try doubling the "Delay" in line 270.
This driver - and most others -do not check the "busy" condition, to avoid reading from the display
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
Whatever, add ",0" after your string. This is what the string(.....) constructions does automatically.
This is a very good explanation for the look of the screen shot you provided: The driver tried to copy A LOT of memory to the display
I also add the test program from Marcel for safety.
Post Edited (deSilva) : 8/10/2007 3:56:46 AM GMT
It is working. Thank you deSilva for all your help. now I have a reason to learn spin
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!