Hi there,
I'm currently building Prusa i3 rework and trying to get Marlin to compile.
I'm following these instructions [reprap.org] and have downloaded this already modified file [reprap.pt]
As is, this file compiles without problems.
I'm trying to install a RepRapDiscount Full Graphic Smart Controller as per [reprap.org]
I have U8glib installed.
If i enable this in configuration.h
Any ideas?
I'm currently building Prusa i3 rework and trying to get Marlin to compile.
I'm following these instructions [reprap.org] and have downloaded this already modified file [reprap.pt]
As is, this file compiles without problems.
I'm trying to install a RepRapDiscount Full Graphic Smart Controller as per [reprap.org]
I have U8glib installed.
If i enable this in configuration.h
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLERCompiling will fail with:
Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" sketch\Marlin_main.cpp:2108:36: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF"."); ^ In file included from sketch\dogm_lcd_implementation.h:40:0, from sketch\ultralcd.cpp:36: sketch\ultralcd_st7920_u8glib_rrd.h: In function 'uint8_t u8g_dev_rrd_st7920_128x64_fn(u8g_t*, u8g_dev_t*, uint8_t, void*)': sketch\ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define ST7920_WRITE_BYTE(a) {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();} ^ sketch\ultralcd_st7920_u8glib_rrd.h:63:9: note: in expansion of macro 'ST7920_WRITE_BYTE' ST7920_WRITE_BYTE(0x3E); //extended mode + GDRAM active ^ sketch\ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define ST7920_WRITE_BYTE(a) {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();} ^ sketch\ultralcd_st7920_u8glib_rrd.h:67:11: note: in expansion of macro 'ST7920_WRITE_BYTE' ST7920_WRITE_BYTE(0x80); //set x = 0 ^ sketch\ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define ST7920_WRITE_BYTE(a) {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();} ^ sketch\ultralcd_st7920_u8glib_rrd.h:94:13: note: in expansion of macro 'ST7920_WRITE_BYTE' ST7920_WRITE_BYTE(0x80); //x=0 ^ sketch\ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define ST7920_WRITE_BYTE(a) {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();} ^ sketch\ultralcd_st7920_u8glib_rrd.h:99:13: note: in expansion of macro 'ST7920_WRITE_BYTE' ST7920_WRITE_BYTE(0x80 | 8); //x=64 ^ sketch\ultralcd.cpp: In function 'void config_lcd_level_bed()': ultralcd.cpp:758: error: 'lcd' was not declared in this scope lcd.clear(); ^ sketch\ultralcd.cpp: In function 'void lcd_level_bed_cooling()': ultralcd.cpp:769: error: 'lcd' was not declared in this scope lcd.setCursor(0, 0); ^ ultralcd.cpp:791: error: 'lcd' was not declared in this scope lcd.clear(); ^ sketch\ultralcd.cpp: In function 'void lcd_level_bed()': ultralcd.cpp:800: error: 'lcd' was not declared in this scope lcd.clear(); ^ sketch\ultralcd.cpp: In function 'void lcd_load_material_extrud_1()': ultralcd.cpp:944: error: 'lcd' was not declared in this scope lcd.setCursor(3, 2); ^ sketch\ultralcd.cpp: In function 'void lcd_unload_material_extrud_1()': ultralcd.cpp:990: error: 'lcd' was not declared in this scope lcd.setCursor(3, 2); ^ sketch\ultralcd.cpp: In function 'void lcd_init()': ultralcd.cpp:1418: error: 'lcd' was not declared in this scope lcd.clear(); ^ exit status 1 'lcd' was not declared in this scope This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
Any ideas?