Page 1 of 3

LCD 12864 with GT2560

Posted: Tue Jun 16, 2015 11:26 am
by jfsgi
How do I utilize the LCD 12864 with the GT2560 Controller?

Currently I am using the standard LCD,

In the technical specs it lists the ability to use both monitors.

Please advise

Re: LCD 12864 with GT2560

Posted: Wed Jun 17, 2015 9:00 am
by zhangxueyou
Change some codes in "configuration.h".
If you are using LCD12684, find:

Code: Select all

// The RepRapDiscount FULL GRAPHIC SmartController (quadratic white PCB)
//http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
// ==> REMEMBER TO INSTALL U8glib toyour ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
//#defineREPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
delete "//" of the 5th line.
then find:

Code: Select all

// The RepRapDiscount Smart Controller(white PCB)
//http://reprap.org/wiki/RepRapDiscount_Smart_Controller
#define REPRAP_DISCOUNT_SMART_CONTROLLER
Add "//" at the beginning of 3rd line.


If it shows error like this:
Marlin.ino:44:101: fatal error: U8glib.h:No such file or directory
Cmpliation terminated.
Error compiling.
Obviously, it lacks file "U8glib.h". Because you have not installed the LCD library of u8glib.
So you need to install it:
Download the source code of Marlin:
link: https://github.com/MarlinFirmware/Marlin

Unzip the file, you will find a folder named "U8glib" at Marlin-Release\Marlin-Release\ArduinoAddons\Arduino_1.0.x\libraries.
(I use Arduino1.0.1 to upload the firmware, so I the folder"U8glib" I need to copy is at"Arduino_1.0.x", you should copy the correct folder according to your Arduino version. )
Copy the folder to arduino-1.0.1-windows\arduino-1.0.1\libraries

Re: LCD 12864 with GT2560

Posted: Fri Jan 08, 2016 5:59 am
by rmrodrigues
Hi,
Which version of U8glib are you using?
I'm not able to get it working. After upload the firmware the lcd is always blinking.

Cheers,
RMRodrigues.

Re: LCD 12864 with GT2560

Posted: Fri Jan 08, 2016 5:19 pm
by george6robles
georgeroblesjr.wordpress.com

You will find what I have done with arduino. And if you need further help you can find my email there. You may need to change another item in the firmware like with Sanguinololu board, bit not usually needed. Double check yours cables are in the right plugs. Try swaping the lcd cables, if no change, revert back.

Re: LCD 12864 with GT2560

Posted: Sat Jan 09, 2016 4:07 am
by rmrodrigues
Hi Mark,
I've downloaded it and I'm getting a compilation error because the lib is not found.

Any help?

Thanks.

Re: LCD 12864 with GT2560

Posted: Sat Jan 09, 2016 2:41 pm
by Mark
uh...sorry my bad, I made a mistake, this is not the one. My library file is too big to attach here, could you give me your mail address and I'll send it to you, I have tested it and this can compile successfully.
And I'll attach my U8glib file here first, see if it works.
U8glib.zip
(914.23 KiB) Downloaded 1816 times

Re: LCD 12864 with GT2560

Posted: Sat Jan 09, 2016 2:46 pm
by george6robles
Oh, and some have issues with the first link on page, the second link on bottom is better for those with Sanguinololu board. And if you get error, what's listed on the bottom?

Re: LCD 12864 with GT2560

Posted: Sat Jan 09, 2016 2:54 pm
by Mark
"dogm_font_data_marlin.h:12: error: 'u8g_fntpgm_uint8_t' does not name a type"
This is the error I got without the U8glib file for LCD12864, if I add the it to the library and reboot the arduino, then it works.

Re: LCD 12864 with GT2560

Posted: Sat Jan 09, 2016 7:52 pm
by rmrodrigues
I've uploaded the firmawre and the result is:
https://www.dropbox.com/s/84mqxrotkq83p ... m.mp4?dl=0
Any help?

Re: LCD 12864 with GT2560

Posted: Fri Jan 15, 2016 4:07 pm
by Mark
seems to be a low power problem, did the voltage is correct?