|
@ -39,17 +39,17 @@ |
|
|
/**
|
|
|
/**
|
|
|
* General Flags that may be set below by specific LCDs |
|
|
* General Flags that may be set below by specific LCDs |
|
|
* |
|
|
* |
|
|
* DOGLCD : Run a Graphical LCD through U8GLib (with MarlinUI) |
|
|
* DOGLCD : Run a Graphical LCD through U8GLib (with MarlinUI) |
|
|
* IS_ULTIPANEL : Define LCD_PINS_D5/6/7 for direct-connected "Ultipanel" LCDs |
|
|
* IS_ULTIPANEL : Define LCD_PINS_D5/6/7 for direct-connected "Ultipanel" LCDs |
|
|
* IS_ULTRA_LCD : Ultra LCD, not necessarily Ultipanel. |
|
|
* IS_ULTRA_LCD : Ultra LCD, not necessarily Ultipanel. |
|
|
* IS_RRD_SC : Common RRD Smart Controller digital interface pins |
|
|
* IS_RRD_SC : Common RRD Smart Controller digital interface pins |
|
|
* IS_RRD_FG_SC : Common RRD Full Graphical Smart Controller digital interface pins |
|
|
* IS_RRD_FG_SC : Common RRD Full Graphical Smart Controller digital interface pins |
|
|
* U8GLIB_ST7920 : Most common DOGM display SPI interface, supporting a "lightweight" display mode. |
|
|
* IS_U8GLIB_ST7920 : Most common DOGM display SPI interface, supporting a "lightweight" display mode. |
|
|
* U8GLIB_SH1106 : SH1106 OLED with I2C interface via U8GLib |
|
|
* U8GLIB_SH1106 : SH1106 OLED with I2C interface via U8GLib |
|
|
* IS_U8GLIB_SSD1306 : SSD1306 OLED with I2C interface via U8GLib |
|
|
* IS_U8GLIB_SSD1306 : SSD1306 OLED with I2C interface via U8GLib (U8GLIB_SSD1306) |
|
|
* U8GLIB_SSD1309 : SSD1309 OLED with I2C interface via U8GLib |
|
|
* U8GLIB_SSD1309 : SSD1309 OLED with I2C interface via U8GLib (HAS_U8GLIB_I2C_OLED, IS_ULTRA_LCD, DOGLCD) |
|
|
* U8GLIB_ST7565_64128N : ST7565 128x64 LCD with SPI interface via U8GLib |
|
|
* IS_U8GLIB_ST7565_64128N : ST7565 128x64 LCD with SPI interface via U8GLib |
|
|
* U8GLIB_LM6059_AF : LM6059 with Hardware SPI via U8GLib |
|
|
* IS_U8GLIB_LM6059_AF : LM6059 with Hardware SPI via U8GLib |
|
|
*/ |
|
|
*/ |
|
|
#if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY) |
|
|
#if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY) |
|
|
|
|
|
|
|
@ -85,7 +85,7 @@ |
|
|
#elif ENABLED(ZONESTAR_12864LCD) |
|
|
#elif ENABLED(ZONESTAR_12864LCD) |
|
|
#define DOGLCD |
|
|
#define DOGLCD |
|
|
#define IS_RRD_SC 1 |
|
|
#define IS_RRD_SC 1 |
|
|
#define U8GLIB_ST7920 |
|
|
#define IS_U8GLIB_ST7920 1 |
|
|
|
|
|
|
|
|
#elif ENABLED(ZONESTAR_12864OLED) |
|
|
#elif ENABLED(ZONESTAR_12864OLED) |
|
|
#define IS_RRD_SC 1 |
|
|
#define IS_RRD_SC 1 |
|
@ -99,19 +99,24 @@ |
|
|
#define IS_ULTIPANEL 1 |
|
|
#define IS_ULTIPANEL 1 |
|
|
#define ENCODER_PULSES_PER_STEP 2 |
|
|
#define ENCODER_PULSES_PER_STEP 2 |
|
|
|
|
|
|
|
|
#elif ANY(miniVIKI, VIKI2, ELB_FULL_GRAPHIC_CONTROLLER, AZSMZ_12864) |
|
|
#elif ANY(miniVIKI, VIKI2, WYH_L12864, ELB_FULL_GRAPHIC_CONTROLLER, AZSMZ_12864) |
|
|
|
|
|
|
|
|
|
|
|
#define IS_DOGM_12864 1 |
|
|
|
|
|
|
|
|
#define DOGLCD |
|
|
#define DOGLCD |
|
|
#define IS_ULTIPANEL 1 |
|
|
#define IS_ULTIPANEL 1 |
|
|
|
|
|
|
|
|
#if ENABLED(miniVIKI) |
|
|
#if ENABLED(miniVIKI) |
|
|
#define U8GLIB_ST7565_64128N |
|
|
#define IS_U8GLIB_ST7565_64128N 1 |
|
|
#elif ENABLED(VIKI2) |
|
|
#elif ENABLED(VIKI2) |
|
|
#define U8GLIB_ST7565_64128N |
|
|
#define IS_U8GLIB_ST7565_64128N 1 |
|
|
|
|
|
#elif ENABLED(WYH_L12864) |
|
|
|
|
|
#define IS_U8GLIB_ST7565_64128N 1 |
|
|
|
|
|
#define ST7565_XOFFSET 0x04 |
|
|
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) |
|
|
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) |
|
|
#define U8GLIB_LM6059_AF |
|
|
#define IS_U8GLIB_LM6059_AF 1 |
|
|
#elif ENABLED(AZSMZ_12864) |
|
|
#elif ENABLED(AZSMZ_12864) |
|
|
#define U8GLIB_ST7565_64128N |
|
|
#define IS_U8GLIB_ST7565_64128N 1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#elif ENABLED(OLED_PANEL_TINYBOY2) |
|
|
#elif ENABLED(OLED_PANEL_TINYBOY2) |
|
@ -128,7 +133,7 @@ |
|
|
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD) |
|
|
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD) |
|
|
|
|
|
|
|
|
#define DOGLCD |
|
|
#define DOGLCD |
|
|
#define U8GLIB_ST7920 |
|
|
#define IS_U8GLIB_ST7920 1 |
|
|
#define IS_ULTIPANEL 1 |
|
|
#define IS_ULTIPANEL 1 |
|
|
|
|
|
|
|
|
#elif ENABLED(MKS_12864OLED) |
|
|
#elif ENABLED(MKS_12864OLED) |
|
@ -144,7 +149,7 @@ |
|
|
#elif ENABLED(SAV_3DGLCD) |
|
|
#elif ENABLED(SAV_3DGLCD) |
|
|
|
|
|
|
|
|
#ifdef U8GLIB_SSD1306 |
|
|
#ifdef U8GLIB_SSD1306 |
|
|
#define IS_U8GLIB_SSD1306 |
|
|
#define IS_U8GLIB_SSD1306 // Allow for U8GLIB_SSD1306 + SAV_3DGLCD
|
|
|
#endif |
|
|
#endif |
|
|
#define IS_NEWPANEL 1 |
|
|
#define IS_NEWPANEL 1 |
|
|
|
|
|
|
|
@ -266,7 +271,7 @@ |
|
|
// ST7920-based graphical displays
|
|
|
// ST7920-based graphical displays
|
|
|
#if ANY(IS_RRD_FG_SC, LCD_FOR_MELZI, SILVER_GATE_GLCD_CONTROLLER) |
|
|
#if ANY(IS_RRD_FG_SC, LCD_FOR_MELZI, SILVER_GATE_GLCD_CONTROLLER) |
|
|
#define DOGLCD |
|
|
#define DOGLCD |
|
|
#define U8GLIB_ST7920 |
|
|
#define IS_U8GLIB_ST7920 1 |
|
|
#define IS_RRD_SC 1 |
|
|
#define IS_RRD_SC 1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -275,7 +280,7 @@ |
|
|
#define IS_ULTIPANEL 1 |
|
|
#define IS_ULTIPANEL 1 |
|
|
#define DOGLCD |
|
|
#define DOGLCD |
|
|
#if ENABLED(MAKRPANEL) |
|
|
#if ENABLED(MAKRPANEL) |
|
|
#define U8GLIB_ST7565_64128N |
|
|
#define IS_U8GLIB_ST7565_64128N 1 |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -372,24 +377,27 @@ |
|
|
* I2C Panels |
|
|
* I2C Panels |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#if EITHER(LCD_SAINSMART_I2C_1602, LCD_SAINSMART_I2C_2004) |
|
|
#if ANY(IS_RRD_SC, IS_DOGM_12864, OLED_PANEL_TINYBOY2, LCD_I2C_PANELOLU2) |
|
|
|
|
|
|
|
|
#define LCD_I2C_TYPE_PCF8575 |
|
|
#define STD_ENCODER_PULSES_PER_STEP 4 |
|
|
#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
|
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1 |
|
|
|
|
|
|
|
|
#if ENABLED(LCD_SAINSMART_I2C_2004) |
|
|
#if ENABLED(LCD_I2C_PANELOLU2) // PANELOLU2 LCD with status LEDs, separate encoder and click inputs
|
|
|
#define LCD_WIDTH 20 |
|
|
#define LCD_I2C_TYPE_MCP23017 // I2C Character-based 12864 display
|
|
|
#define LCD_HEIGHT 4 |
|
|
#define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
|
|
|
|
|
|
#define LCD_USE_I2C_BUZZER // Enable buzzer on LCD (optional)
|
|
|
|
|
|
#define IS_ULTIPANEL 1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#elif ENABLED(LCD_I2C_PANELOLU2) |
|
|
#elif EITHER(LCD_SAINSMART_I2C_1602, LCD_SAINSMART_I2C_2004) |
|
|
|
|
|
|
|
|
// PANELOLU2 LCD with status LEDs, separate encoder and click inputs
|
|
|
#define LCD_I2C_TYPE_PCF8575 // I2C Character-based 12864 display
|
|
|
|
|
|
#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
|
|
|
|
|
|
|
|
|
#define LCD_I2C_TYPE_MCP23017 |
|
|
#if ENABLED(LCD_SAINSMART_I2C_2004) |
|
|
#define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
|
|
|
#define LCD_WIDTH 20 |
|
|
#define LCD_USE_I2C_BUZZER // Enable buzzer on LCD (optional)
|
|
|
#define LCD_HEIGHT 4 |
|
|
#define IS_ULTIPANEL 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#elif ENABLED(LCD_I2C_VIKI) |
|
|
#elif ENABLED(LCD_I2C_VIKI) |
|
|
|
|
|
|
|
@ -416,11 +424,6 @@ |
|
|
#define STD_ENCODER_PULSES_PER_STEP 2 |
|
|
#define STD_ENCODER_PULSES_PER_STEP 2 |
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1 |
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1 |
|
|
|
|
|
|
|
|
#elif ANY(IS_RRD_SC, miniVIKI, VIKI2, ELB_FULL_GRAPHIC_CONTROLLER, AZSMZ_12864, OLED_PANEL_TINYBOY2, BQ_LCD_SMART_CONTROLLER, LCD_I2C_PANELOLU2) |
|
|
|
|
|
|
|
|
|
|
|
#define STD_ENCODER_PULSES_PER_STEP 4 |
|
|
|
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1 |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if EITHER(LCD_I2C_TYPE_MCP23017, LCD_I2C_TYPE_MCP23008) && DISABLED(NO_LCD_DETECT) |
|
|
#if EITHER(LCD_I2C_TYPE_MCP23017, LCD_I2C_TYPE_MCP23008) && DISABLED(NO_LCD_DETECT) |
|
|