Merge pull request #8078 from thinkyhead/bf2_mks_mini_lcd

[2.0.x] Add MKS MINI 12864 support to GT2560
This commit is contained in:
Scott Lahteine 2017-10-25 01:10:03 -05:00 committed by GitHub
commit 10a5e4d80f

View File

@ -98,18 +98,23 @@
#if ENABLED(NEWPANEL) #if ENABLED(NEWPANEL)
#define LCD_PINS_RS 20 #if ENABLED(MKS_MINI_12864)
#define LCD_PINS_ENABLE 17 #define DOGLCD_A0 5
#define LCD_PINS_D4 16 #define DOGLCD_CS 21
#define LCD_PINS_D5 21 #define BTN_EN1 40
#define LCD_PINS_D6 5 #define BTN_EN2 42
#define LCD_PINS_D7 6 #else
#define LCD_PINS_RS 20
#define LCD_PINS_ENABLE 17
#define LCD_PINS_D4 16
#define LCD_PINS_D5 21
#define LCD_PINS_D6 5
#define LCD_PINS_D7 6
#define BTN_EN1 42
#define BTN_EN2 40
#endif
// Buttons are directly attached
#define BTN_EN1 42
#define BTN_EN2 40
#define BTN_ENC 19 #define BTN_ENC 19
#define SD_DETECT_PIN 38 #define SD_DETECT_PIN 38
#else // !NEWPANEL #else // !NEWPANEL