LCD 12864 with GT2560

jfsgi
Posts: 15
Joined: Thu Jun 11, 2015 11:05 am

LCD 12864 with GT2560

Post by jfsgi » Tue Jun 16, 2015 11:26 am

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

zhangxueyou
Posts: 1405
Joined: Fri Feb 06, 2015 1:33 pm

Re: LCD 12864 with GT2560

Post by zhangxueyou » Wed Jun 17, 2015 9:00 am

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

rmrodrigues
Posts: 42
Joined: Wed Oct 14, 2015 5:37 am

Re: LCD 12864 with GT2560

Post by rmrodrigues » Fri Jan 08, 2016 5:59 am

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.

george6robles
Posts: 10
Joined: Thu Mar 19, 2015 3:06 pm

Re: LCD 12864 with GT2560

Post by george6robles » Fri Jan 08, 2016 5:19 pm

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.

rmrodrigues
Posts: 42
Joined: Wed Oct 14, 2015 5:37 am

Re: LCD 12864 with GT2560

Post by rmrodrigues » Sat Jan 09, 2016 4:07 am

Hi Mark,
I've downloaded it and I'm getting a compilation error because the lib is not found.

Any help?

Thanks.

Mark
Posts: 1553
Joined: Thu Aug 06, 2015 9:19 am

Re: LCD 12864 with GT2560

Post by Mark » Sat Jan 09, 2016 2:41 pm

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 1713 times

george6robles
Posts: 10
Joined: Thu Mar 19, 2015 3:06 pm

Re: LCD 12864 with GT2560

Post by george6robles » Sat Jan 09, 2016 2:46 pm

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?

Mark
Posts: 1553
Joined: Thu Aug 06, 2015 9:19 am

Re: LCD 12864 with GT2560

Post by Mark » Sat Jan 09, 2016 2:54 pm

"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.

rmrodrigues
Posts: 42
Joined: Wed Oct 14, 2015 5:37 am

Re: LCD 12864 with GT2560

Post by rmrodrigues » Sat Jan 09, 2016 7:52 pm

I've uploaded the firmawre and the result is:
https://www.dropbox.com/s/84mqxrotkq83p ... m.mp4?dl=0
Any help?

Mark
Posts: 1553
Joined: Thu Aug 06, 2015 9:19 am

Re: LCD 12864 with GT2560

Post by Mark » Fri Jan 15, 2016 4:07 pm

seems to be a low power problem, did the voltage is correct?

Post Reply