Browse Source

Fix Zonestar / ADC keypad with RAMPS. (#9840)

Ben Lye 6 years ago
parent
commit
461cb22069
1 changed files with 13 additions and 14 deletions
  1. 13
    14
      Marlin/src/pins/pins_RAMPS.h

+ 13
- 14
Marlin/src/pins/pins_RAMPS.h View File

@@ -366,6 +366,15 @@
366 366
         #define BEEPER_PIN      37
367 367
       #endif
368 368
 
369
+    #elif ENABLED(ZONESTAR_LCD)
370
+
371
+      #define LCD_PINS_RS       64
372
+      #define LCD_PINS_ENABLE   44
373
+      #define LCD_PINS_D4       63
374
+      #define LCD_PINS_D5       40
375
+      #define LCD_PINS_D6       42
376
+      #define LCD_PINS_D7       65
377
+
369 378
     #else
370 379
 
371 380
       #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
@@ -534,6 +543,10 @@
534 543
       #define SD_DETECT_PIN     49
535 544
       #define KILL_PIN          64
536 545
 
546
+    #elif ENABLED(ZONESTAR_LCD)
547
+
548
+      #define ADC_KEYPAD_PIN    12
549
+
537 550
     #else
538 551
 
539 552
       // Beeper on AUX-4
@@ -566,17 +579,3 @@
566 579
   #endif // NEWPANEL
567 580
 
568 581
 #endif // ULTRA_LCD
569
-
570
-#if ENABLED(ZONESTAR_LCD)
571
-  #define LCD_PINS_RS        64
572
-  #define LCD_PINS_ENABLE    44
573
-  #define LCD_PINS_D4        63
574
-  #define LCD_PINS_D5        40
575
-  #define LCD_PINS_D6        42
576
-  #define LCD_PINS_D7        65
577
-  #define ADC_KEYPAD_PIN     12
578
-  #define BTN_EN1            -1
579
-  #define BTN_EN2            -1
580
-  #define BTN_ENC            -1
581
-  // pin 29 N/C
582
-#endif // ZONESTAR_LCD

Loading…
Cancel
Save