Go Down

Topic: GLCD library version 3 (end of life - no longer supported) (Read 96191 times) previous topic - next topic

bperrybap


Hi everyone !

I am new to the arduino.   

and i have an GLCD  type of wdg0151-tmi  and i dont know to wire it and also how to program it with arduino mega .

please please help and thank you and sorry for my bad language 

start here: http://playground.arduino.cc/Code/GLCDks0108

bperrybap


Thanks Bill, I'll do that. In this part of the forum?

Sure, put it in "Displays". I'll see it.
--- bill

momtot

Bill

please help me to wire and control my wdg0151 lcd

with arduino mega

and thank you for your care  :*

bperrybap

momtot,
First thing you need be able to identify all the pins on the GLCD module.
This is critical since if things are mis-wired the glcd or the arduino could be damaged.
If your display does not have the pins labeled, Google around for a datasheet.
Again, it is critical that you have the correct information for the glcd pins.

While I can't be sure, this datasheet sounds like it is for the
display you have described:
http://www.mikroe.com/downloads/get/1010/glcd_128x64_spec.pdf

You can then use the data sheet, or pin labels if your glcd has them , to identify
the glcd pins and match them up to the Arduino pins for your Arduino board.
Use the "GLCD Panel Pinouts" table on the glcd playground page (I provided the link earlier).

Then simply look at the pin function on the glcd and wire that function to the
Arduino pin indicated in the table.
For example if the glcd module uses pin 9 for data bit 0 (DB0 or D0) and you are using a
arduino mega, you scan down the "Function" column in the table until you see "D0"
Once you locate "D0" look to the left in the "Mega" column and you will see a 22
So that means that you hook the GLCD pin for D0 to the Arduino Mega pin 22.

You will do this for all the pins on your glcd.
You must also hook up the GLCD reset pin, contrast pot, the backlight and the power connections for
the glcd. The playground page has quite a bit of information for how to do these things.

Read through the playground page and come back with any additional questions.

--- bill


I am not getting any display on my glcd jhd12864e when my connections are according to
http://playground.arduino.cc/uploads/Code/GLCD_Documentation.pdf
can anyone help me

bperrybap

#305
Dec 16, 2013, 08:42 pm Last Edit: Mar 25, 2015, 04:15 pm by bperrybap
Update: 2015-03-25
The glcdv3 library code has not been updated since late 2011.
It will not work with more recent IDEs and newer Arduino boards like
Arduino Leonardo, Due, Teensy 3.0/3.1/LC, Chipkit pic32 boards, AVR 1284 Bobuino,
AVR 1284 SleepingBeauty, as well as many others.
Also, Google has decided to terminate the google code site.
Sometime in 2015 no more downloads will be available from the glcdv3 repository and sometime in 2016 the Google code site is scheduled to be turned off.
Until then, see the glcdv3 main project page for alternative libraries.
https://code.google.com/p/glcd-arduino/

Essentially, glcdv3 has reached end of life.



For everyone following this thread and using the GLCDv3 library,
I will no longer be supporting this library.
I have instead decided to create a new glcd library and will be offering support for that.
The new library, called openGLCD, is a fork of the GLCDv3 library code.
The openGLCD library has many bug fixes, updates, and new features over GLCDv3.
While it is not 100% backward compatible with GLCDv3 it currently does offer
a GLCDv3 compatibilty mode which should allow most sketches to work with
only changing the header includes.
The biggest change from GLCDv3 is that openGLCD is released under GPL v3 instead
of the LGPL 2.1+ license that GLCDv3 used.
NOTE: This means that openGLCD can not be used on closed source projects.
openGLCD has not yet been officially released.
To read more about or even try the openGLCD library, it can be found on bitbucket:
https://bitbucket.org/bperrybap/openglcd
Please post any questions or support issues for this library in new threads.


For anyone still using or needing support for GLCDv3 I will leave this thread open
for anyone that would like to continue to support it.

--- bill

Chumbaz

I have this display:

http://ebmstore.it/index.php?route=product/product&path=139_140_142&product_id=805

it is based on the ST7920 chip and can be used in serial SPI mode.

Is it possibile to use this library or not? I have searched all over the web but I can't have an answer and i did several experiments but no success. Thank you.

bperrybap

Unfortunately, the ST7920 display is not supported by the GLCD or openGLCD libraries.
u8glib does support that chip.
http://code.google.com/p/u8glib/
--- bill

kikiz

Hello everybody,

I bought a graphic lcd a few weeks ago but i'm able to make it work.
I'm using an arduino uno (i also tried with a mega) but that's the same.

I tried the diags sketch but it seems to have a reset problem :

Reported Arduino Revision: 1.6
--------------------------------------------------------------------
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-Arduino
--------------------------------------------------------------------
GLCD:ks0108 DisplayWidth:128 DisplayHeight:64
Chips:2 ChipWidth:64 ChipHeight:64
CSEL1:14(PIN_C0) CSEL2:15(PIN_C1)
RES:19(PIN_C5) RW:16(PIN_C2) DI:17(PIN_C3) EN:18(PIN_C4)
D0:8(PIN_B0) D1:9(PIN_B1) D2:10(PIN_B2) D3:11(PIN_B3)
D4:4(PIN_D4) D5:5(PIN_D5) D6:6(PIN_D6) D7:7(PIN_D7)
Delays: tDDR:320 tAS:140 tDSW:200 tWH:450 tWL:450
ChipSelects: CHIP0:(14,0x1, 15,0x0) CHIP1:(14,0x0, 15,0x1)
Data mode:
d0-d3:nibble mode-Non-Atomic
d4-d7:nibble mode-Non-Atomic
--------------------------------------------------------------------
Diag Loop: 1
Initializing GLCD
GLCD initialization Failed: RESET wait Timeout (status code: 2)



As you can see, reset is wired to analog5 because when i wire it on reset pin,
i can't upload the sketch => avrdude: stk500_getsync(): not in sync: resp=0x00.

To use analog5 as reset, i uncommented that #define glcdRES          19    // Reset Bit on
ks0108_Arduino.h.

I don't know what else to do...
Can anybody help me?
Thanks
Kikiz

bperrybap

kikiz,
I can help you if you are willing to switch to using openGLCD instead.
I no longer support the GLCDv3 library: http://forum.arduino.cc/index.php?topic=56705.msg1509585#msg1509585
--- bill

kikiz

Hello Bill,

I'm going to try your new library tomorrow. But i think your link is not good
because it send me to the same html page. I already download openGLCD but
i didn't find a forum to help me. Tell me where to contact you to talk about openGLCD.

Thank you.
Regards,
Kikiz

kikiz

Hello Bill,

I just tried the diags sketch of your library openGLCD but i got the same problem.

Here is the result of the diags :

Serial initialized
--------------------------------------------------------------------
Reported Arduino Revision: 1.0.6
F_CPU: 16000000
--------------------------------------------------------------------
Lib Configuration: openGLCD ver: 1.0rc1 build: v1.0rc1
Panel Configuration:ks0108-128x64
Pin Configuration:ks0108-Uno
--------------------------------------------------------------------
GLCD:ks0108 DisplayWidth:128 DisplayHeight:64
Chips:2 ChipWidth:64 ChipHeight:64
 CSEL1:A0(PIN_C0) CSEL2:A1(PIN_C1)
 RW:A2(PIN_C2) DI:A3(PIN_C3) EN:A4(PIN_C4)
 D0:8(PIN_B0) D1:9(PIN_B1) D2:10(PIN_B2) D3:11(PIN_B3)
 D4:4(PIN_D4) D5:5(PIN_D5) D6:6(PIN_D6) D7:7(PIN_D7)
Delays: tDDR:320 tAS:140 tDSW:200 tWH:450 tWL:450
ChipSelects:
 CHIP0:(A0,0x1, A1,0x0)
 CHIP1:(A0,0x0, A1,0x1)
Data mode:
 d0-d3:nibble mode-Non-Atomic
 d4-d7:nibble mode-Non-Atomic
Backlight: <Not configured>
--------------------------------------------------------------------
Diag Loop: 1
Initializing openGLCD
GLCD initialization Failed: RESET wait Timeout (status code: 2)

Thanks for helping me, i'm desperate.
Kikiz

anm_cool

i am just trying to get this library to work but, its giving an error with arduino due even if i am making a new header file for its configuration.


Arduino: 1.5.8 (Mac OS X), Board: "Arduino Due (Programming Port)"

In file included from /Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/glcd_io.h:36:0,
                from /Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/glcd_Device.cpp:28:
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/arduino_io.h:67:2: error: #error "Arduino pin mapping not defined for this board"
#error "Arduino pin mapping not defined for this board"
 ^
In file included from /Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/glcd_io.h:46:0,
                from /Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/glcd_Device.cpp:28:
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h: In function 'void avrio_WriteBit(uint8_t, avrpin_t, uint8_t)':
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:199:62: error: '_BV' was not declared in this scope
#define AVRIO_PIN2AVRBITMASK(pin) _BV((AVRIO_PIN2AVRBIT(pin)))
                                                             ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:400:22: note: in expansion of macro 'AVRIO_PIN2AVRBITMASK'
uint8_t avrbitmask = AVRIO_PIN2AVRBITMASK(avrpin);
                     ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h: In function 'uint8_t avrio_ReadBit(uint8_t, avrpin_t)':
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:199:62: error: '_BV' was not declared in this scope
#define AVRIO_PIN2AVRBITMASK(pin) _BV((AVRIO_PIN2AVRBIT(pin)))
                                                             ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:954:22: note: in expansion of macro 'AVRIO_PIN2AVRBITMASK'
uint8_t avrbitmask = AVRIO_PIN2AVRBITMASK(avrpin);
                     ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h: In function 'void avrio_Write8Bits(uint8_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, uint8_t)':
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1325:19: error: '_BV' was not declared in this scope
   if(data & _BV(0)) avrio_WriteBit(regtyp, p0, 1);
                  ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1326:19: error: '_BV' was not declared in this scope
   if(data & _BV(1)) avrio_WriteBit(regtyp, p1, 1);
                  ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1327:19: error: '_BV' was not declared in this scope
   if(data & _BV(2)) avrio_WriteBit(regtyp, p2, 1);
                  ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1328:19: error: '_BV' was not declared in this scope
   if(data & _BV(3)) avrio_WriteBit(regtyp, p3, 1);
                  ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1370:19: error: '_BV' was not declared in this scope
   if(data & _BV(4)) avrio_WriteBit(regtyp, p4, 1);
                  ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1371:19: error: '_BV' was not declared in this scope
   if(data & _BV(5)) avrio_WriteBit(regtyp, p5, 1);
                  ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1372:19: error: '_BV' was not declared in this scope
   if(data & _BV(6)) avrio_WriteBit(regtyp, p6, 1);
                  ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1373:19: error: '_BV' was not declared in this scope
   if(data & _BV(7)) avrio_WriteBit(regtyp, p7, 1);
                  ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h: In function 'uint8_t avrio_Read8Bits(uint8_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t, avrpin_t)':
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1490:47: error: '_BV' was not declared in this scope
   if(avrio_ReadBit(regtyp, p0)) data |= _BV(0);
                                              ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1491:47: error: '_BV' was not declared in this scope
   if(avrio_ReadBit(regtyp, p1)) data |= _BV(1);
                                              ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1492:47: error: '_BV' was not declared in this scope
   if(avrio_ReadBit(regtyp, p2)) data |= _BV(2);
                                              ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1493:47: error: '_BV' was not declared in this scope
   if(avrio_ReadBit(regtyp, p3)) data |= _BV(3);
                                              ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1522:47: error: '_BV' was not declared in this scope
   if(avrio_ReadBit(regtyp, p4)) data |= _BV(4);
                                              ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1523:47: error: '_BV' was not declared in this scope
   if(avrio_ReadBit(regtyp, p5)) data |= _BV(5);
                                              ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1524:47: error: '_BV' was not declared in this scope
   if(avrio_ReadBit(regtyp, p6)) data |= _BV(6);
                                              ^
/Users/AnmolSrivastava/Documents/Arduino/libraries/glcd/include/avrio.h:1525:47: error: '_BV' was not declared in this scope
   if(avrio_ReadBit(regtyp, p7)) data |= _BV(7);
                                              ^
Error compiling.

 This report would have more information with
 "Show verbose output during compilation"
 enabled in File > Preferences.

bperrybap

Everyone, the glcdv3 library has not been maintained for several years.
It doesn't work with newer boards and newer IDEs and I will not be doing any more support for this library.
Essentially the glcdv3 library has reached end of life.

See the notice in the initial post of this thread for more details.
http://forum.arduino.cc/index.php?topic=56705.msg407124#msg407124

--- bill

SamuTnT

Hi, i'm using openGLCD v1.0rc2 with a 128x64 lcd with KS0108 and an Arduino UNO v3, i've managed to get it working and the GLCDdiags has ran fine for some loops so i unplugged the power from the UNO and get some sleep..

...now i was trying to do something with the LCD but when i powered it up something went wrong, chip 1 seems to work ok but chip0 was k.o., the left side of the screen was "lighted up", all pixels on, i unplugged the power, rewired everithing and checked all multiple times, then powered it up and lookin at serial monitor all it print out is this:

Code: [Select]
Set Timeout (status code: 1)
Test Count: 0 PASSED 1 FAILED
 Loop: 1
Initializing openGLCD
GLCD initialization Failed: BUSY wait Timeout (status code: 1)
Test Count: 0 PASSED 1 FAILED
 Loop: 1
Initializing openGLCD
GLCD initialization Failed: BUSY wait Timeout (status code: 1)
Test Count: 0 PASSED 1 FAILED
Serial initialized
--------------------------------------------------------------------
Reported Arduino Revision: 106.0.3
F_CPU: 16000000
--------------------------------------------------------------------
Lib Configuration: openGLCD ver: 1.0rc2 build: v1.0rc2
Panel Configuration:ks0108-128x64
Pin Configuration:ks0108-Uno
--------------------------------------------------------------------
GLCD:ks0108 DisplayWidth:128 DisplayHeight:64
Chips:2 ChipWidth:64 ChipHeight:64
 CSEL1:A0(PIN_C0) CSEL2:A1(PIN_C1)
 RW:A2(PIN_C2) DI:A3(PIN_C3) EN:A4(PIN_C4)
 D0:8(PIN_B0) D1:9(PIN_B1) D2:10(PIN_B2) D3:11(PIN_B3)
 D4:4(PIN_D4) D5:5(PIN_D5) D6:6(PIN_D6) D7:7(PIN_D7)
Delays: tDDR:320 tAS:140 tDSW:200 tWH:450 tWL:450
ChipSelects:
 CHIP0:(A0,0x1, A1,0x0)
 CHIP1:(A0,0x0, A1,0x1)
Data mode:
 d0-d3:nibble mode-Non-Atomic
 d4-d7:nibble mode-Non-Atomic
Backlight: <Not configured>
--------------------------------------------------------------------
Diag Loop: 1
Initializing openGLCD
GLCD initialization Failed: BUSY wait Timeout (status code: 1)
Test Count: 0 PASSED 1 FAILED
--------------------------------------------------------------------
Reported Arduino Revision: 106.0.3
F_CPU: 16000000
--------------------------------------------------------------------
Lib Configuration: openGLCD ver: 1.0rc2 build: v1.0rc2
Panel Configuration:ks0108-128x64
Pin Configuration:ks0108-Uno
--------------------------------------------------------------------
GLCD:ks0108 DisplayWidth:128 DisplayHeight:64
Chips:2 ChipWidth:64 ChipHeight:64
 CSEL1:A0(PIN_C0) CSEL2:A1(PIN_C1)
 RW:A2(PIN_C2) DI:A3(PIN_C3) EN:A4(PIN_C4)
 D0:8(PIN_B0) D1:9(PIN_B1) D2:10(PIN_B2) D3:11(PIN_B3)
 D4:4(PIN_D4) D5:5(PIN_D5) D6:6(PIN_D6) D7:7(PIN_D7)
Delays: tDDR:320 tAS:140 tDSW:200 tWH:450 tWL:450
ChipSelects:
 CHIP0:(A0,0x1, A1,0x0)
 CHIP1:(A0,0x0, A1,0x1)
Data mode:
 d0-d3:nibble mode-Non-Atomic
 d4-d7:nibble mode-Non-Atomic
Backlight: <Not configured>
--------------------------------------------------------------------
Diag Loop: 2
Initializing openGLCD
GLCD initialization Failed: RESET wait Timeout (status code: 2)
Test Count: 0 PASSED 2 FAILED
--------------------------------------------------------------------


The first loop ends with BUSY wait Timeout, from the second loop the error is RESET wait Timout and so on for all the loops that follows..

What the hell has happened during the night??

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy