|
Post by electricmini on Jan 19, 2014 12:21:04 GMT -8
Hi there
I really like the GD2 - nice work! I downloaded the library, and got some of the examples (that don't use SDcard) running on an Arduino Mega board.
I then tried compiling it on MPIDE, for the ChipKit MAX32 - initially it moaned about the PROGMEM usage (something to do with it already being a const) I then tried removing every const keyword that appeared before PROGMEM, and holy cow it works! The demos run on the PIC32 cpu that's in the chipkit boards!
So this could be a really useful set of libraries not just for Arduinos to use the FT800, but also Chipkit & Cerebot boards as well
One thing I have noticed, I seem to get some corruption in the graphics/edges on both the Mega and the Chipkit boards, still not sure if it might be a hardware thing (maybe I'm missing a pullup/pulldown on my setup)
Anyway, nice work, and I think I'm go along and buy a GD2 now!
|
|
nucks
New Member
Posts: 3
|
Post by nucks on Mar 20, 2014 2:00:20 GMT -8
Hi, I am using chipkit max32 with FTDI display and I have a problem image. Image appear upside down and the colors appear exchanged blue by red.
Do you know why?
|
|
peterm
Junior Member

Posts: 17
|
Post by peterm on Mar 20, 2014 3:23:04 GMT -8
nucks
Not sure how to do it in the Sketch program but if you open GD2.cpp and scroll down till you see the GDTR.begin() function, search for GDTR.wr(REG_ROTATE,1) change the 1 to a 0 (as shown below)
#if PROTO == 1 GDTR.wr(REG_ROTATE, 0); GDTR.wr(REG_SWIZZLE, 3); #endif
|
|
nucks
New Member
Posts: 3
|
Post by nucks on Mar 20, 2014 4:37:54 GMT -8
Thanks a lot Peter. it works. I changed REG_SWIZZLE too and resolution looks much better now. Now I only have to solve the RGB because color are BGR.
|
|
nucks
New Member
Posts: 3
|
Post by nucks on Mar 20, 2014 4:43:05 GMT -8
I put (REG_SWIZZLE ,0) and solve the color too.
Thanks a lot Peter
|
|