From 897170294cbad83874be506e04b46103901bd68b Mon Sep 17 00:00:00 2001 From: Ben Lye Date: Wed, 28 Feb 2018 06:07:42 +0000 Subject: [PATCH] Fix Zonestar / ADC keypad with RAMPS. (#9841) --- Marlin/pins_RAMPS.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/Marlin/pins_RAMPS.h b/Marlin/pins_RAMPS.h index b552228a7..22fddf8cf 100644 --- a/Marlin/pins_RAMPS.h +++ b/Marlin/pins_RAMPS.h @@ -358,6 +358,15 @@ #define BEEPER_PIN 37 #endif + #elif ENABLED(ZONESTAR_LCD) + + #define LCD_PINS_RS 64 + #define LCD_PINS_ENABLE 44 + #define LCD_PINS_D4 63 + #define LCD_PINS_D5 40 + #define LCD_PINS_D6 42 + #define LCD_PINS_D7 65 + #else #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306) @@ -526,6 +535,10 @@ #define SD_DETECT_PIN 49 #define KILL_PIN 64 + #elif ENABLED(ZONESTAR_LCD) + + #define ADC_KEYPAD_PIN 12 + #else // Beeper on AUX-4 @@ -558,17 +571,3 @@ #endif // NEWPANEL #endif // ULTRA_LCD - -#if ENABLED(ZONESTAR_LCD) - #define LCD_PINS_RS 64 - #define LCD_PINS_ENABLE 44 - #define LCD_PINS_D4 63 - #define LCD_PINS_D5 40 - #define LCD_PINS_D6 42 - #define LCD_PINS_D7 65 - #define ADC_KEYPAD_PIN 12 - #define BTN_EN1 -1 - #define BTN_EN2 -1 - #define BTN_ENC -1 - // pin 29 N/C -#endif // ZONESTAR_LCD