LCD Code help..
KPR
Posts: 189
I found an old 40x2 optex parallel LCD unit in my box of toys and was wondering what needed to be modded in the LCDDEMO code to get full use out of my unit..
I quickly looked in the demo code and it showed the memory management for most units in the info in the header comments, but I couldn't find any line width variables.. so I am a little confused..
What I did see if code that did bit shifting and since its using 4 bit characters and the code did a 64 bit shift ( 4 x 16 chars ) and for the second line added 128, I am assuming this is the code I would have to change to shift 40 x 4 = 160 bits and then the offset would be plus 320 bits for the second line..
Does this make sense??
Anyone else have a 40x2 character display?
thanks
k.
I quickly looked in the demo code and it showed the memory management for most units in the info in the header comments, but I couldn't find any line width variables.. so I am a little confused..
What I did see if code that did bit shifting and since its using 4 bit characters and the code did a 64 bit shift ( 4 x 16 chars ) and for the second line added 128, I am assuming this is the code I would have to change to shift 40 x 4 = 160 bits and then the offset would be plus 320 bits for the second line..
Does this make sense??
Anyone else have a 40x2 character display?
thanks
k.
Comments
*Peter*