And (//) undefine all others in the // LCD and SD support
Added u8glib to the library.
Now I get the following error when uploading.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Mega 2560 or Mega ADK"
ultralcd.cpp: In function 'void config_lcd_level_bed()':
ultralcd.cpp:758: error: 'lcd' was not declared in this scope
ultralcd.cpp: In function 'void lcd_level_bed_cooling()':
ultralcd.cpp:769: error: 'lcd' was not declared in this scope
ultralcd.cpp:791: error: 'lcd' was not declared in this scope
ultralcd.cpp: In function 'void lcd_level_bed()':
ultralcd.cpp:800: error: 'lcd' was not declared in this scope
ultralcd.cpp: In function 'void lcd_load_material_extrud_1()':
ultralcd.cpp:944: error: 'lcd' was not declared in this scope
ultralcd.cpp: In function 'void lcd_unload_material_extrud_1()':
ultralcd.cpp:990: error: 'lcd' was not declared in this scope
ultralcd.cpp: In function 'void lcd_init()':
ultralcd.cpp:1418: error: 'lcd' was not declared in this scope
I too had this issue. I bought the 'RepRapDiscount Full Graphic Smart Controller' card. I duly took out the comments for it in the configuration.h file and added the U8glib into the Arduino library but kept it coming up with the same error. I tried adding the above lines of code to the "ultralcd.cpp" but it didn't work no matter where I put them in. In the end I took out these additional lines of code (those above) and just used the original modifications that were recommended but the error returned. I studied the error and noticed this. The error occurred in the ultralcd.ccp file and the line of code that kept being highlighted was :-