Welcome! Log In Create A New Profile

Advanced

Getting LCD To Work sad smiley

Posted by mrmills129 
Getting LCD To Work sad smiley
June 13, 2015 03:44PM
Hey guys, now that you helped me fixed my X-Axis endstop issue, i was hoping you could help me resolve my LCD issue...

Its a 128 x 64 LCD with SD card reader. It was bundled with some parts I got off eBay. It came with the cables and adapter need to hook it up. I installed the U8glib, and uncommented the "#define DOGLCD" under LCD and SD Support, as well as "#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER" next to the U8glib download link, but I am getting a compile error.

It displays the following...

ultralcd.cpp: In function 'void config_lcd_level_bed()':
ultralcd.cpp:758:3: error: 'lcd' was not declared in this scope
lcd.clear();
^
ultralcd.cpp: In function 'void lcd_level_bed_cooling()':
ultralcd.cpp:769:11: error: 'lcd' was not declared in this scope
lcd.setCursor(0, 0);
^
ultralcd.cpp:791:4: error: 'lcd' was not declared in this scope
lcd.clear();
^
ultralcd.cpp: In function 'void lcd_level_bed()':
ultralcd.cpp:800:8: error: 'lcd' was not declared in this scope
lcd.clear();
^
ultralcd.cpp: In function 'void lcd_load_material_extrud_1()':
ultralcd.cpp:944:5: error: 'lcd' was not declared in this scope
lcd.setCursor(3, 2);
^
ultralcd.cpp: In function 'void lcd_unload_material_extrud_1()':
ultralcd.cpp:990:5: error: 'lcd' was not declared in this scope
lcd.setCursor(3, 2);
^
ultralcd.cpp: In function 'void lcd_init()':
ultralcd.cpp:1418:5: error: 'lcd' was not declared in this scope
lcd.clear();
^
Error compiling.



So I tried to include the U8glib in the ultralcd.cpp file, but issue persists... Can someone tell me what I'm missing??



Thank you in advance for any help!
Re: Getting LCD To Work sad smiley
June 13, 2015 04:40PM
You need to uncomment either doglcd or the reprap_discount..., not both, they are two different LCD types.
Re: Getting LCD To Work sad smiley
June 13, 2015 07:23PM


Like that? Are there any changes I have to make to code below that, or in one of the other files?
If you know of a page where I can read steps on how to do it that'd be much appreciated. I hate to continue to bother...
Re: Getting LCD To Work sad smiley
June 13, 2015 09:02PM
No, comment *OUT* DOGLCD . . . it is not needed when defining the graphic controller . . .

- Tim
Re: Getting LCD To Work sad smiley
June 15, 2015 08:51PM
Thank you for your help! Got it working grinning smiley
Sorry, only registered users may post in this forum.

Click here to login