Fix FYSETC, MINIPANEL, MKS_MINI_12864 display (#13864)

This commit is contained in:
Luu Lac 2019-05-01 00:37:52 -05:00 committed by Scott Lahteine
parent 93dcb537ef
commit 39ebca6b5f

View File

@ -107,12 +107,16 @@
// Generic support for SSD1309 OLED I2C LCDs // Generic support for SSD1309 OLED I2C LCDs
#define U8G_CLASS U8GLIB_SSD1309_128X64 #define U8G_CLASS U8GLIB_SSD1309_128X64
#define U8G_PARAM (U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST) #define U8G_PARAM (U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST)
#elif EITHER(MINIPANEL, FYSETC_MINI_12864) #elif ENABLED(MINIPANEL)
// The MINIPanel display // MINIPanel display
//#define U8G_CLASS U8GLIB_MINI12864 //#define U8G_CLASS U8GLIB_MINI12864
//#define U8G_PARAM DOGLCD_CS, DOGLCD_A0 // 8 stripes //#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 #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 #define U8G_PARAM DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0 // 4 stripes SW-SPI
#else #else
#define U8G_PARAM DOGLCD_CS, DOGLCD_A0 // 4 stripes HW-SPI #define U8G_PARAM DOGLCD_CS, DOGLCD_A0 // 4 stripes HW-SPI