Shop OBEX P1 Docs P2 Docs Learn Events
Graphic LCD HELP! — Parallax Forums

Graphic LCD HELP!

popr8084popr8084 Posts: 13
edited 2008-08-07 04:47 in General Discussion
Im trying to use this graphic LCD.

http://www.circuit-ed.com/128x64-GLCD-BlWh-w-Touchscreen-P146C8.aspx

I have it hooked up exactly the way they tell me to, and no luck. does anyone have any suggestions?

please help!

here is my code:



RST PIN RC.5 OUTPUT
E PIN RC.4 OUTPUT
RW PIN RC.3 OUTPUT
RS PIN RC.2 OUTPUT
CS2 PIN RC.1 OUTPUT
CS1 PIN RC.0 OUTPUT

GLCD_DATA PIN RB OUTPUT


Start:

PAUSE 100


RST = 1
RS = 0
E = 0
RW = 0

CS1 = 0
CS2 = 1

GLCD_DATA = %00111111
PULSOUT E, 1
PAUSE 1

GLCD_DATA = %10111000
PULSOUT E, 1
PAUSE 1

GLCD_DATA = %01000000
PULSOUT E, 1
PAUSE 1

GLCD_DATA = %11000000
PULSOUT E, 1
PAUSE 1


RS = 1


Main:
GLCD_DATA = %10101010
PULSOUT E, 1

PAUSE 1000
GOTO Main

Comments

  • PJMontyPJMonty Posts: 983
    edited 2008-08-07 04:47
    Popr8084,

    My first suggestion is to clarify your post by explaining what you expect to happen and what is happening.

    My second suggestion is that you add some comments to your code so people understand what you're trying to do with it.

    My third suggestion is to use the code formatting buttons to make it easier to read you code. It changes this:

    RST = 1
    RS = 0
    E = 0
    RW = 0

    to this:

    RST = 1
    RS = 0
    E = 0
    RW = 0
    




    All of these will make it easier for people to help you.

    Thanks,
    PeterM
Sign In or Register to comment.