Browse Source

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

Ben Lye 7 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
         #define BEEPER_PIN      37
366
         #define BEEPER_PIN      37
367
       #endif
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
     #else
378
     #else
370
 
379
 
371
       #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
380
       #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
534
       #define SD_DETECT_PIN     49
543
       #define SD_DETECT_PIN     49
535
       #define KILL_PIN          64
544
       #define KILL_PIN          64
536
 
545
 
546
+    #elif ENABLED(ZONESTAR_LCD)
547
+
548
+      #define ADC_KEYPAD_PIN    12
549
+
537
     #else
550
     #else
538
 
551
 
539
       // Beeper on AUX-4
552
       // Beeper on AUX-4
566
   #endif // NEWPANEL
579
   #endif // NEWPANEL
567
 
580
 
568
 #endif // ULTRA_LCD
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