Shop OBEX P1 Docs P2 Docs Learn Events
ks0108 LCD issues — Parallax Forums

ks0108 LCD issues

Tom (SA)Tom (SA) Posts: 6
edited 2010-02-27 16:57 in Propeller 1
Hi There,

I recently started playing around with a gadget gangster propeller platform kit. I managed to hook up a ks0108 lcd and got it working with the ks0108 lcd library I found on the obex. My only problem is that it seems like there is some flickering, even when just displaying some basic text and then nothing more. I'm guessing that the driver runs in some kind of loop and I figured that it's maybe trying to refresh to fast for my lcd. I had a look at the code of the driver but the main core is written in asm which to me is gibberish confused.gif

Does anybody have any ideas or suggestions on how I can get rid of the flicker ?

My little test prog is very basic:



lcdpointer:=text.start

text.out($1)
text.str(string("Dcml pnt 2 "))




Thanks,
Tom

Comments

  • Erik FriesenErik Friesen Posts: 1,071
    edited 2010-02-27 16:25
    Some of the cheap knockoffs don't do well with a fast write.

    If it is my code, play with this line - (down towards the bottom of the asm)

    tdelay        long    90   'this sets delay for lcd
    



    set this number larger for a slower write, it may take care of the problem. I used a hantronix lcd for this code, and they can be written relatively fast.
  • Tom (SA)Tom (SA) Posts: 6
    edited 2010-02-27 16:51
    Worked like a charm, thanks for the quick reply. Do you have any example code/suggestions on loading/creating custom sprites ? Sorry for the noob questions, haven't had much experience with the propeller and no experience with graphic lcd's

    Thanks again for all the help
  • Erik FriesenErik Friesen Posts: 1,071
    edited 2010-02-27 16:57
    I am not sure what you mean by custom sprites. If you are referring to using the graphics library, I would suggest starting a new thread, as graphics code is the same as is used for the tv, vga, etc.
Sign In or Register to comment.