Hello,
I have connected 128x64 glcd to Arduino MEGA following this Arduino Playground - GLCDks0108 .
When I use Pinout B, LCD shows only two big stripes (as image in attachement). GLCD.ClearScreen(); doesn't work.
If I change connection to Pinout C, nothing shows (only light, no pixels). So I hope Pinout B is right connection.
I don't have contrast pot/resistor connected. Can this fact cause the problem?
My LCD is this one: http://www.ebay.com/itm/260932724689 - there is also a datasheet.
I use glcd 3 library from Google Code Archive - Long-term storage for Google Code Project Hosting. .
My code is:
#include <glcd.h>
#include <fonts/allFonts.h>
#include <ks0108_Mega.h>
void setup() {
GLCD.Init(NON_INVERTED);
GLCD.ClearScreen();
GLCD.SelectFont(System5x7);
GLCD.print("hello, world!");
}
void loop() {
}
Have you experienced similar problem?
Thank you for every hint!
EDIT - this is glcd 3 library test output:
--------------------------------------------------------------------
Reported Arduino Revision: 1.0
--------------------------------------------------------------------
GLCD Lib Configuration: glcd ver: 3 glcd_Device ver: 1 gText ver: 1
GLCD Lib build date: Mon Dec 5 01:50:07 CST 2011
GLCD Lib build number: 442
Panel Configuration:ks0108
Pin Configuration:ks0108-Mega
--------------------------------------------------------------------
GLCD:ks0108 DisplayWidth:128 DisplayHeight:64
Chips:2 ChipWidth:64 ChipHeight:64
CSEL1:33(PIN_C4) CSEL2:34(PIN_C3)
RW:35(PIN_C2) DI:36(PIN_C1) EN:37(PIN_C0)
D0:22(PIN_A0) D1:23(PIN_A1) D2:24(PIN_A2) D3:25(PIN_A3)
D4:26(PIN_A4) D5:27(PIN_A5) D6:28(PIN_A6) D7:29(PIN_A7)
Delays: tDDR:320 tAS:140 tDSW:200 tWH:450 tWL:450
ChipSelects: CHIP0:(33,0x1, 34,0x0) CHIP1:(33,0x0, 34,0x1)
Data mode: byte
--------------------------------------------------------------------
Diag Loop: 1
Initializing GLCD
GLCD initialization Failed: RESET wait Timeout (status code: 2)

