Pārlūkot izejas kodu

Cleanup of RAMPS LCD pins

Scott Lahteine 8 gadus atpakaļ
vecāks
revīzija
55dc8051d8
1 mainītis faili ar 24 papildinājumiem un 35 dzēšanām
  1. 24
    35
      Marlin/pins_RAMPS_14.h

+ 24
- 35
Marlin/pins_RAMPS_14.h Parādīt failu

@@ -141,22 +141,30 @@
141 141
 
142 142
 #if ENABLED(ULTRA_LCD)
143 143
 
144
+  #if ENABLED(NEWPANEL) && ENABLED(PANEL_ONE)
145
+    #define LCD_PINS_RS 40
146
+    #define LCD_PINS_ENABLE 42
147
+    #define LCD_PINS_D4 65
148
+    #define LCD_PINS_D5 66
149
+    #define LCD_PINS_D6 44
150
+    #define LCD_PINS_D7 64
151
+  #else
152
+    #define BEEPER_PIN 33
153
+    #define LCD_PINS_RS 16
154
+    #define LCD_PINS_ENABLE 17
155
+    #define LCD_PINS_D4 23
156
+    #define LCD_PINS_D5 25
157
+    #define LCD_PINS_D6 27
158
+    #define LCD_PINS_D7 29
159
+    // Buttons are attached to a shift register
160
+    // Not wired yet
161
+    //#define SHIFT_CLK 38
162
+    //#define SHIFT_LD 42
163
+    //#define SHIFT_OUT 40
164
+    //#define SHIFT_EN 17
165
+  #endif
166
+
144 167
   #if ENABLED(NEWPANEL)
145
-    #if ENABLED(PANEL_ONE)
146
-      #define LCD_PINS_RS 40
147
-      #define LCD_PINS_ENABLE 42
148
-      #define LCD_PINS_D4 65
149
-      #define LCD_PINS_D5 66
150
-      #define LCD_PINS_D6 44
151
-      #define LCD_PINS_D7 64
152
-    #else
153
-      #define LCD_PINS_RS 16
154
-      #define LCD_PINS_ENABLE 17
155
-      #define LCD_PINS_D4 23
156
-      #define LCD_PINS_D5 25
157
-      #define LCD_PINS_D6 27
158
-      #define LCD_PINS_D7 29
159
-    #endif
160 168
 
161 169
     #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
162 170
       #define BEEPER_PIN 37
@@ -272,26 +280,7 @@
272 280
       #endif
273 281
 
274 282
     #endif
275
-  #else // !NEWPANEL (Old-style panel with shift register)
276
-
277
-    // No Beeper added
278
-    #define BEEPER_PIN 33
279
-
280
-    // Buttons are attached to a shift register
281
-    // Not wired yet
282
-    //#define SHIFT_CLK 38
283
-    //#define SHIFT_LD 42
284
-    //#define SHIFT_OUT 40
285
-    //#define SHIFT_EN 17
286
-
287
-    #define LCD_PINS_RS 16
288
-    #define LCD_PINS_ENABLE 17
289
-    #define LCD_PINS_D4 23
290
-    #define LCD_PINS_D5 25
291
-    #define LCD_PINS_D6 27
292
-    #define LCD_PINS_D7 29
293
-
294
-  #endif // !NEWPANEL
283
+  #endif // NEWPANEL
295 284
 
296 285
 #endif // ULTRA_LCD
297 286
 

Notiek ielāde…
Atcelt
Saglabāt