Loading...
Pages: [1]   Go Down
Author Topic: 12864ZW with u8glib - no DI pin?!  (Read 759 times)
1 Member and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to connect my 12864ZW display to Arduino. I believe it's ST7920 (http://www.digole.com/images/file/Digole_12864_LCD.pdf).

To initialize the library I have to remove comment from:
U8GLIB_ST7920_128X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, U8G_PIN_NONE, U8G_PIN_NONE, 17, 16);   // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, di=17,rw=16

The problem is I have no DI pin (the attached spec doesn't have it as well). I've already broken one display so I would like to be sure what I'm doing this time ;-)
Logged

Germany
Offline Offline
God Member
*****
Karma: 69
Posts: 799
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The data/instruction pin (DI) might have a different name. In your case the corresponding pin is RS (register select).
Also remember to set PSB pin to "high" (connect to 5V)

Oliver
Logged

Germany
Offline Offline
God Member
*****
Karma: 69
Posts: 799
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I forgot to mention, that there is a pending bug in u8glib where the reset pin is not handled correctly.
http://code.google.com/p/u8glib/issues/detail?id=133

You could:
- use a RC network for reset
- switch to SPI interface
- wait for the next official u8glib release (not scheduled yet)
- let me know if you need a prerelease

Oliver
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you Olikraus for your time & help.
Logged

Germany
Offline Offline
God Member
*****
Karma: 69
Posts: 799
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have added a bugfix release on the u8glib download page.
http://code.google.com/p/u8glib/downloads/list

Oliver
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This new version works perfect on QC12864B in parallel mode.

Olikraus thanks for this great job!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for the update. It works well on my LCD as well.
Logged

Germany
Offline Offline
God Member
*****
Karma: 69
Posts: 799
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the feedback.

Oliver
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have this GLCD: http://img713.imageshack.us/img713/4055/lcdgrafico128x641.jpg.
With this, how can I use your library?
Thanks oliver, it is very important for me.
Logged

Germany
Offline Offline
God Member
*****
Karma: 69
Posts: 799
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

You can use the serial interface (PSB = GND) with
Code:
U8GLIB_ST7920_128X64_1X(E, R/W, RS , rst)
where the four arguments are the Arduino pin numbers, which are connected to the corresponding pin of your display.

Oliver
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Oliver! 
Logged

Pages: [1]   Go Up
Print
 
Jump to: