Welcome! Log In Create A New Profile

Advanced

I2C OLED MARLIN 2.0.X bugconfused smiley

Posted by karkin 
I2C OLED MARLIN 2.0.X bugconfused smiley
July 26, 2021 12:15PM
Hey,guys!
I m trying to make a I2C OLED display.
I got a SSD1306 driver OLED

solution 1:
Configuration.h:

#define SAV_3DGLCD
#if ENABLED(SAV_3DGLCD)
#define U8GLIB_SSD1306
//#define U8GLIB_SH1106
#endif
the oled work normally,but the encoder doesn't work.




solution 2:
Configuration.h:

#define SAV_3DGLCD
#if ENABLED(SAV_3DGLCD)
//#define U8GLIB_SSD1306
#define U8GLIB_SH1106
#endif
the encoder work,but there is a problem on the OLED(The left)


can someone help me to fix this ? PLS!

Edited 2 time(s). Last edit at 07/26/2021 12:17PM by karkin.
Re: I2C OLED MARLIN 2.0.X bugconfused smiley
July 26, 2021 10:08PM
There is whole section dedicated to marlin, why did you not post there? Ie where the Marlin experts hang out...


In Marlin/src/inc/Conditionals_LCD.h is
// Basic Ultipanel-like displays
#if ANY(ULTIMAKERCONTROLLER, IS_RRD_SC, G3D_PANEL, RIGIDBOT_PANEL, PANEL_ONE, U8GLIB_SH1106)
  #define IS_ULTIPANEL 1
#endif

update it to
// Basic Ultipanel-like displays
#if ANY(ULTIMAKERCONTROLLER, IS_RRD_SC, G3D_PANEL, RIGIDBOT_PANEL, PANEL_ONE, U8GLIB_SH1106, U8GLIB_SSD1306)
  #define IS_ULTIPANEL 1
#endif

and use
#define SAV_3DGLCD
#if ENABLED(SAV_3DGLCD)
  #define U8GLIB_SSD1306
  //#define U8GLIB_SH1106
#endif
Re: I2C OLED MARLIN 2.0.X bugconfused smiley
July 30, 2021 12:21AM
Quote
Dust
There is whole section dedicated to marlin, why did you not post there? Ie where the Marlin experts hang out...


In Marlin/src/inc/Conditionals_LCD.h is
// Basic Ultipanel-like displays
#if ANY(ULTIMAKERCONTROLLER, IS_RRD_SC, G3D_PANEL, RIGIDBOT_PANEL, PANEL_ONE, U8GLIB_SH1106)
  #define IS_ULTIPANEL 1
#endif

update it to
// Basic Ultipanel-like displays
#if ANY(ULTIMAKERCONTROLLER, IS_RRD_SC, G3D_PANEL, RIGIDBOT_PANEL, PANEL_ONE, U8GLIB_SH1106, U8GLIB_SSD1306)
  #define IS_ULTIPANEL 1
#endif

and use
#define SAV_3DGLCD
#if ENABLED(SAV_3DGLCD)
  #define U8GLIB_SSD1306
  //#define U8GLIB_SH1106
#endif

Thanks a lot. I m new here and i didn't know that.
Re: I2C OLED MARLIN 2.0.X bugconfused smiley
July 30, 2021 11:47AM
It was a bug, I've had it fixed in Marlin bugfix,
Sorry, only registered users may post in this forum.

Click here to login