So the solution was this?
What about the graphic? Is it displaying proper graphic now?
Edit:
I managed to put into my marlin version like this. I don't know which version I'm running probably 1.0.0, the marlin still using MOTHERBOARD var name
So far no compile errors and I added #endif because the arduino ide gave me unterminated endif error. Currently I'm unable to test, need to check out later tonight
#ifdef U8GLIB_ST7920 //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0 #if MB(MELZI) // Added check for Melzi boards #define LCD_PINS_RS 30 //CS chip select /SS chip slave select #define LCD_PINS_ENABLE 29 //SID (MOSI) #define LCD_PINS_D4 17 //SCK (CLK) clock #define BEEPER 27 // Pin 27 is take by LED_Pin, but Melzi LED do nothing with Marlin and I take this pin for BEEPER.... See here > [github.com] , If you want use this pin with Gcode M42 instead BEEPER #else // Added pins for Sanguinololu 1.3 #define LCD_PINS_RS 4 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 30 #define LCD_PINS_D5 29 #define LCD_PINS_D6 28 #define LCD_PINS_D7 27 #endif
What about the graphic? Is it displaying proper graphic now?
Edit:
I managed to put into my marlin version like this. I don't know which version I'm running probably 1.0.0, the marlin still using MOTHERBOARD var name
//sangui u8glib support #ifdef U8GLIB_ST7920 //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0 #if MOTHERBOARD == 63 // Added check for Melzi boards #define LCD_PINS_RS 30 //CS chip select /SS chip slave select #define LCD_PINS_ENABLE 29 //SID (MOSI) #define LCD_PINS_D4 17 //SCK (CLK) clock #define BEEPER 27 // Pin 27 is take by LED_Pin, but Melzi LED do nothing with Marlin and I take this pin for BEEPER.... See here > [github.com] , If you want use this pin with Gcode M42 instead BEEPER #else // Added pins for Sanguinololu 1.3 #define LCD_PINS_RS 4 #define LCD_PINS_ENABLE 17 #define LCD_PINS_D4 30 #define LCD_PINS_D5 29 #define LCD_PINS_D6 28 #define LCD_PINS_D7 27 #endif #endif
So far no compile errors and I added #endif because the arduino ide gave me unterminated endif error. Currently I'm unable to test, need to check out later tonight