Browse Source

Fix spacing, use single instances of similar pins

Scott Lahteine 7 years ago
parent
commit
5bed2f351a
1 changed files with 17 additions and 26 deletions
  1. 17
    26
      Marlin/pins_GT2560_REV_A.h

+ 17
- 26
Marlin/pins_GT2560_REV_A.h View File

@@ -98,33 +98,24 @@
98 98
 
99 99
   #if ENABLED(NEWPANEL)
100 100
 
101
-  #if ENABLED(MKS_MINI_12864)
102
-      #define DOGLCD_A0         5
103
-      #define DOGLCD_CS         21
104
-
105
-      #define BTN_EN1           40
106
-      #define BTN_EN2           42
107
-      #define BTN_ENC           19
108
-
109
-      #define SDSS              53
110
-      #define SD_DETECT_PIN     38
111
-  #else
112
-
113
-      #define LCD_PINS_RS    20
101
+    #if ENABLED(MKS_MINI_12864)
102
+      #define DOGLCD_A0     5
103
+      #define DOGLCD_CS    21
104
+      #define BTN_EN1      40
105
+      #define BTN_EN2      42
106
+    #else
107
+      #define LCD_PINS_RS  20
114 108
       #define LCD_PINS_ENABLE 17
115
-      #define LCD_PINS_D4    16
116
-      #define LCD_PINS_D5    21
117
-      #define LCD_PINS_D6     5
118
-      #define LCD_PINS_D7     6
119
-
120
-      // Buttons are directly attached
121
-      #define BTN_EN1        42
122
-      #define BTN_EN2        40
123
-      #define BTN_ENC        19
124
-
125
-      #define SD_DETECT_PIN  38
126
-
127
-  #endif
109
+      #define LCD_PINS_D4  16
110
+      #define LCD_PINS_D5  21
111
+      #define LCD_PINS_D6   5
112
+      #define LCD_PINS_D7   6
113
+      #define BTN_EN1      42
114
+      #define BTN_EN2      40
115
+    #endif
116
+
117
+    #define BTN_ENC        19
118
+    #define SD_DETECT_PIN  38
128 119
 
129 120
   #else // !NEWPANEL
130 121
 

Loading…
Cancel
Save