Dallas, TX USA
Offline
Edison Member
Karma: 27
Posts: 1657
|
 |
« on: March 27, 2011, 01:21:01 pm » |
This thread is a replacement for the older/original glcd v3 library thread that became locked/read-only when the new forum was created. Here is the link to the original thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1279128237/The latest build of the library can be found here: http://code.google.com/p/glcd-arduino/downloads/listThe library is near final release. Until then, please post any issues/bugs found in this thread. --- bill
|
|
|
|
« Last Edit: April 23, 2011, 03:24:37 pm by bperrybap »
|
Logged
|
|
|
|
|
Dallas, TX USA
Offline
Edison Member
Karma: 27
Posts: 1657
|
 |
« Reply #1 on: April 23, 2011, 03:21:45 pm » |
RC2 is now available for downloading.
This release is minor fixes and updates. There are no new API functions. See the download for details.
--- bill
|
|
|
|
« Last Edit: April 23, 2011, 03:24:56 pm by bperrybap »
|
Logged
|
|
|
|
|
/dev/null
Offline
Newbie
Karma: 0
Posts: 24
|
 |
« Reply #2 on: April 26, 2011, 03:14:40 pm » |
kudos, bill.
|
|
|
|
|
Logged
|
yes, have some.
|
|
|
|
Moordrecht, the Netherlands
Offline
Newbie
Karma: 0
Posts: 16
Arduino newbie
|
 |
« Reply #3 on: April 27, 2011, 01:43:47 am » |
Bill,
Would it be possible to include the T6963C library's into this ? It seems like more people are getting these LCD's and can't find a suitable library ?
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, TX USA
Offline
Edison Member
Karma: 27
Posts: 1657
|
 |
« Reply #4 on: April 27, 2011, 07:36:59 pm » |
By "include the T6963C library's into this" I assume you mean to write new code for the glcd library to support the T6963C so it can be one of the chips supported by the glcd library?
Keep in mind that the v3 glcd library is just now about to be pushed into final release.
The existing glcd library code does have kind of a framework to support alternate chips and there are a few others like the sed1520 that are already supported, but the framework isn't completely generic. It depends on the glcd having a particular memory to pixel mapping.
Chips like the T6963C don't fit very well into the existing framework. Also the T6963C has some additional more intelligent features and capabilities not in the simpler graphic chips like the ks0108. It becomes a bit of a challenge to support the more advanced features when they are available.
Michael and I have discussed the possibility of redoing how the various internal layers of the library fit together to make it easier to add in support for new chips.
So while this may some day happen, we currently don't have it scheduled and are not looking at it yet.
--- bill
|
|
|
|
|
Logged
|
|
|
|
|
NZ
Offline
Sr. Member
Karma: 0
Posts: 376
Turtle in a hard shell
|
 |
« Reply #5 on: May 07, 2011, 02:32:46 am » |
Just got one of my LCD's working using the latest GLCD Thank you very much. It is the following display: http://www.lcd-module.com/eng/pdf/grafik/dip122-5e.pdfSED1520 compatible chips in it, so changed glcd.h to include the Modvk5121_Manual_Config.h config. Had to modify the Modvk5121_Manual_Config.h file as m display is 122x32 rather than 120x32 which was default. It just made a gap between the two sides, and one on the end. Works great running the GLCDdiags sketch. Very valuable sketch as I had it wired wrong to start with, and the Serial printout the sketch gave detailing the pins showed me I had 4 wires in the wrong order. Was brilliant. GLCDdiags stated: K Setdot/s: 18.27 Running this on standard Arduino Duemilanove. I hope to incorporate 2 of these displays on a 644P or 1284P for my project. I posted in the topic regarding 2 displays. ( http://arduino.cc/forum/index.php/topic,56043.msg436479.html#msg436479) Hopefully the library will work ok for the 1284P, running the core from Mark S. Time will tell. Thanks again James
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 27
|
 |
« Reply #6 on: May 11, 2011, 03:35:14 pm » |
Added my tested B-type panel 12864J-1 to the playground model listing (Full Size picture)Walking 1s data test Diag Loop: 1 Initializing GLCD Displaying ChipSelect Screens Wr/Rd Chip Select Test Testing GLCD memory pages Horizontal Page Test Chip: 0 Pixels 0-63 Vertical Page Test Chip: 0 Pixels 0-63 Horizontal Page Test Chip: 1 Pixels 64-127 Vertical Page Test Chip: 1 Pixels 64-127 Full Module Horizontal Page Test:Pixels 0-127 Full Module Vertical Page Test:Pixels 0-127 Tests PASSED GLCD.SetDot() speed (K ops/sec): 19.10 -------------------------------------------------------------------- Reported Arduino Revision: 22 -------------------------------------------------------------------- GLCD Lib Configuration: glcd ver: 3 glcd_Device ver: 1 gText ver: 1 GLCD Lib build date: Sat 04/23/2011 15:01:49.03 GLCD Lib build number: 421 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) 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 --------------------------------------------------------------------
|
|
|
|
« Last Edit: May 11, 2011, 03:47:57 pm by pixelk »
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 49
Arduino rocks
|
 |
« Reply #7 on: May 17, 2011, 04:33:32 am » |
Just bought a 128x64 display and downloaded the library. Excellent library and the documentation was extremely useful in connecting the display. Just one query, I am trying to run the ClockFace sketch and am getting a number of error when I try to compile it for a Mega2560: clockFace.cpp:13:82: error: Time.h: No such file or directory clockFace.cpp: In function 'void setup()': clockFace:31: error: 'setTime' was not declared in this scope clockFace.cpp: In function 'void loop()': clockFace:37: error: 'now' was not declared in this scope clockFace:48: error: 'hour' was not declared in this scope clockFace:48: error: 'minute' was not declared in this scope clockFace:48: error: 'second' was not declared in this scope clockFace.cpp: In function 'void checkSetButton(int, int)': clockFace:66: error: 'adjustTime' was not declared in this scope clockFace:71: error: 'hour' was not declared in this scope clockFace:71: error: 'minute' was not declared in this scope clockFace:71: error: 'second' was not declared in this scope
What am I doing wrong? Cheers Z
|
|
|
|
« Last Edit: May 17, 2011, 04:35:21 am by Zitman »
|
Logged
|
|
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 1
|
 |
« Reply #9 on: June 07, 2011, 10:11:15 am » |
I tried to use a Pacific Display Devices 12232-10, a 122x32 module that uses 2x sed1520, but I don't think it can be made to work with the current version on glcd without a lot of work. Please correct me if I'm wrong.
I figured out that 122x32 modules using the sed1520 fall roughly into two types:
The first type has an internal oscillator, brings out 2 enable lines (E1 and E2). It's a 68-Family MPU style interface. The VK5121 module in the example provided with the library is this type.
The second type of module has separate chips selects (CS1 and CS2) and needs and external 2 kHz clock. It's a 80-Family MPU style interface. The Pacific Display Devices 12232-10 module is this type.
Support for this type (I think the specific sed1520 variant is called sed1520-faa) would be great but I understand it may be outside of the scope of the upcoming release. If so, it might be a good idea to put some comments about supported types in the documentation or maybe just comments in the code itself to prevent confusion.
As I find time, I'll look at the code again and see if I can figure out what modifications are necessary to make it work. If I can get it to work, I'll be happy to donate the code. Considering my work schedule and lack of familiarity with the current code, it may be a while.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 146
Arduino rocks
|
 |
« Reply #10 on: June 07, 2011, 03:40:04 pm » |
its the sparkfun's GLCD why? i have check the conections i tried to change pin14 to A0 and 15 to A1 etc but then its not compile thanks a lot
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #11 on: June 07, 2011, 04:36:40 pm » |
I'm wondering if you can give a little help to an issue that isn't part of the official package. I'm trying to run the LCD via a shift register in order to free up some pins that I will need, following the instructions on this post. As you know, a lot of the codebase has changed, as well as some of the general layout, and as a result, these code changes don't work perfectly. In order to account for the layout changes this is in the glcd.cpp file. The main problem I'm encountering is with the last piece of code in that post, the lcdDataShiftOut function. When compiling using the ks0108:: prefix, I get the error that ks0108 hasn't been declared, which is to be expected. When I run it with the glcd:: prefix, I get the error "no member function declared in class 'glcd'". When running without either prefix, it gives errors that FastWriteLow and FastWriteHigh weren't declared in that 'scope'. The problem is, I'm not sure where or how to declare them. Can anyone offer some advice for this? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 146
Arduino rocks
|
 |
« Reply #12 on: June 08, 2011, 07:14:58 am » |
i found it
just a broken wire
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 146
Arduino rocks
|
 |
« Reply #13 on: June 08, 2011, 01:57:35 pm » |
this code
GLCD.DrawCircle(31,31,31,BLACK); GLCD.DrawLine(31,31,31,0);
creates a vertical line not a horizontal
so it is GLCD.DrawLine(X0,Y0,Y1,X1);
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 59
|
 |
« Reply #14 on: June 10, 2011, 04:21:27 pm » |
This may be a really silly question. Is there a document that shows all the commands for these glcd screens? Or do you just have to pick apart the examples. IV got my screen working but im having trouble getting complex functions to materialize.
Thanks, swiffty
|
|
|
|
|
Logged
|
|
|
|
|
|