Skip to content

Commit

Permalink
Fix FYSETC, MINIPANEL, MKS_MINI_12864 display (MarlinFirmware#13864)
Browse files Browse the repository at this point in the history
  • Loading branch information
shitcreek authored and thinkyhead committed May 1, 2019
1 parent 93dcb53 commit 39ebca6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Marlin/src/lcd/dogm/ultralcd_DOGM.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,16 @@
// Generic support for SSD1309 OLED I2C LCDs
#define U8G_CLASS U8GLIB_SSD1309_128X64
#define U8G_PARAM (U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST)
#elif EITHER(MINIPANEL, FYSETC_MINI_12864)
// The MINIPanel display
#elif ENABLED(MINIPANEL)
// MINIPanel display
//#define U8G_CLASS U8GLIB_MINI12864
//#define U8G_PARAM DOGLCD_CS, DOGLCD_A0 // 8 stripes
#define U8G_CLASS U8GLIB_MINI12864_2X
#define U8G_PARAM DOGLCD_CS, DOGLCD_A0 // 8 stripes
#elif ENABLED(FYSETC_MINI_12864)
// The FYSETC_MINI_12864 display
#define U8G_CLASS U8GLIB_MINI12864_2X_HAL
#if BOTH(FYSETC_MINI_12864, FORCE_SOFT_SPI)
#if ENABLED(FORCE_SOFT_SPI)
#define U8G_PARAM DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0 // 4 stripes SW-SPI
#else
#define U8G_PARAM DOGLCD_CS, DOGLCD_A0 // 4 stripes HW-SPI
Expand Down

0 comments on commit 39ebca6

Please sign in to comment.