瀏覽代碼

Clean up some pins

Scott Lahteine 5 年之前
父節點
當前提交
4581957d93

+ 1
- 1
Marlin/src/pins/linux/pins_RAMPS_LINUX.h 查看文件

@@ -437,7 +437,7 @@
437 437
     #endif
438 438
 
439 439
     #if DISABLED(NEWPANEL)
440
-      // Buttons are attached to a shift register
440
+      // Buttons attached to a shift register
441 441
       // Not wired yet
442 442
       //#define SHIFT_CLK       38
443 443
       //#define SHIFT_LD        42

+ 29
- 23
Marlin/src/pins/mega/pins_MEGATRONICS_2.h 查看文件

@@ -116,31 +116,37 @@
116 116
 #define CASE_LIGHT_PIN      2
117 117
 
118 118
 //
119
-// LCD / Controller
120
-//
121
-#define BEEPER_PIN         64
122
-
123
-#define LCD_PINS_RS        14
124
-#define LCD_PINS_ENABLE    15
125
-#define LCD_PINS_D4        30
126
-#define LCD_PINS_D5        31
127
-#define LCD_PINS_D6        32
128
-#define LCD_PINS_D7        33
129
-
130
-// Buttons are directly attached using keypad
131
-#define BTN_EN1            61
132
-#define BTN_EN2            59
133
-#define BTN_ENC            43
134
-
135
-// Buttons that are attached using shift register of reprapworld keypad  v1.1
136
-#define SHIFT_CLK 63
137
-#define SHIFT_LD 42
138
-#define SHIFT_OUT 17
139
-#define SHIFT_EN 17
140
-
141
-//
142 119
 // M3/M4/M5 - Spindle/Laser Control
143 120
 //
144 121
 #define SPINDLE_LASER_PWM_PIN     3   // Hardware PWM
145 122
 #define SPINDLE_LASER_ENA_PIN    16   // Pullup!
146 123
 #define SPINDLE_DIR_PIN          11
124
+
125
+//
126
+// LCD / Controller
127
+//
128
+#define BEEPER_PIN         64
129
+
130
+#if HAS_SPI_LCD
131
+
132
+  #define LCD_PINS_RS      14
133
+  #define LCD_PINS_ENABLE  15
134
+  #define LCD_PINS_D4      30
135
+  #define LCD_PINS_D5      31
136
+  #define LCD_PINS_D6      32
137
+  #define LCD_PINS_D7      33
138
+
139
+  #if ENABLED(NEWPANEL)
140
+    // Buttons are directly attached using keypad
141
+    #define BTN_EN1        61
142
+    #define BTN_EN2        59
143
+    #define BTN_ENC        43
144
+  #else
145
+    // Buttons attached to shift register of reprapworld keypad v1.1
146
+    #define SHIFT_CLK      63
147
+    #define SHIFT_LD       42
148
+    #define SHIFT_OUT      17
149
+    #define SHIFT_EN       17
150
+  #endif
151
+
152
+#endif // HAS_SPI_LCD

+ 1
- 1
Marlin/src/pins/rambo/pins_RAMBO.h 查看文件

@@ -219,7 +219,7 @@
219 219
     // No Beeper added
220 220
     #define BEEPER_PIN     33
221 221
 
222
-    // buttons are attached to a shift register
222
+    // Buttons attached to a shift register
223 223
     // Not wired yet
224 224
     //#define SHIFT_CLK 38
225 225
     //#define SHIFT_LD 42

+ 1
- 1
Marlin/src/pins/ramps/pins_RAMPS.h 查看文件

@@ -477,7 +477,7 @@
477 477
     #endif
478 478
 
479 479
     #if DISABLED(NEWPANEL)
480
-      // Buttons are attached to a shift register
480
+      // Buttons attached to a shift register
481 481
       // Not wired yet
482 482
       //#define SHIFT_CLK       38
483 483
       //#define SHIFT_LD        42

+ 1
- 1
Marlin/src/pins/ramps/pins_TT_OSCAR.h 查看文件

@@ -337,7 +337,7 @@
337 337
     #endif
338 338
 
339 339
     #if DISABLED(NEWPANEL)
340
-      // Buttons are attached to a shift register
340
+      // Buttons attached to a shift register
341 341
       // Not wired yet
342 342
       //#define SHIFT_CLK    38
343 343
       //#define SHIFT_LD     42

+ 2
- 2
Marlin/src/pins/ramps/pins_ULTIMAKER.h 查看文件

@@ -129,7 +129,7 @@
129 129
     #define LCD_PINS_D6     5
130 130
     #define LCD_PINS_D7     6
131 131
 
132
-    // buttons are directly attached
132
+    // Buttons directly attached
133 133
     #define BTN_EN1 40
134 134
     #define BTN_EN2 42
135 135
     #define BTN_ENC 19
@@ -138,7 +138,7 @@
138 138
 
139 139
   #else // !NEWPANEL - Old style panel with shift register
140 140
 
141
-    // buttons are attached to a shift register
141
+    // Buttons attached to a shift register
142 142
     #define SHIFT_CLK 38
143 143
     #define SHIFT_LD 42
144 144
     #define SHIFT_OUT 40

+ 2
- 2
Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h 查看文件

@@ -187,7 +187,7 @@
187 187
     #define LCD_PINS_D6     5
188 188
     #define LCD_PINS_D7     6
189 189
 
190
-    // buttons are directly attached
190
+    // Buttons directly attached
191 191
     #define BTN_EN1        40
192 192
     #define BTN_EN2        42
193 193
     #define BTN_ENC        19
@@ -196,7 +196,7 @@
196 196
 
197 197
   #else // !NEWPANEL - Old style panel with shift register
198 198
 
199
-    // buttons are attached to a shift register
199
+    // Buttons attached to a shift register
200 200
     #define SHIFT_CLK      38
201 201
     #define SHIFT_LD       42
202 202
     #define SHIFT_OUT      40

+ 2
- 2
Marlin/src/pins/stm32/pins_BEAST.h 查看文件

@@ -142,7 +142,7 @@
142 142
     #define LCD_PINS_D7         PB15
143 143
     #if DISABLED(NEWPANEL)
144 144
       #define BEEPER_PIN        33
145
-      // Buttons are attached to a shift register
145
+      // Buttons attached to a shift register
146 146
       // Not wired yet
147 147
       //#define SHIFT_CLK 38
148 148
       //#define SHIFT_LD 42
@@ -254,7 +254,7 @@
254 254
       // Beeper on AUX-4
255 255
       #define BEEPER_PIN        33
256 256
 
257
-      // buttons are directly attached to AUX-2
257
+      // Buttons directly attached to AUX-2
258 258
       #if ENABLED(REPRAPWORLD_KEYPAD)
259 259
         #define BTN_EN1         64
260 260
         #define BTN_EN2         59

+ 6
- 6
Marlin/src/pins/stm32/pins_CHITU3D.h 查看文件

@@ -141,12 +141,12 @@
141 141
     #define LCD_PINS_D7         PB15
142 142
     #if DISABLED(NEWPANEL)
143 143
       #define BEEPER_PIN        33
144
-      // Buttons are attached to a shift register
144
+      // Buttons attached to a shift register
145 145
       // Not wired yet
146
-      //#define SHIFT_CLK 38
147
-      //#define SHIFT_LD 42
148
-      //#define SHIFT_OUT 40
149
-      //#define SHIFT_EN 17
146
+      //#define SHIFT_CLK       38
147
+      //#define SHIFT_LD        42
148
+      //#define SHIFT_OUT       40
149
+      //#define SHIFT_EN        17
150 150
     #endif
151 151
   #endif
152 152
 
@@ -252,7 +252,7 @@
252 252
       // Beeper on AUX-4
253 253
       #define BEEPER_PIN        33
254 254
 
255
-      // buttons are directly attached to AUX-2
255
+      // Buttons directly attached to AUX-2
256 256
       #if ENABLED(REPRAPWORLD_KEYPAD)
257 257
         #define BTN_EN1         64
258 258
         #define BTN_EN2         59

+ 2
- 2
Marlin/src/pins/stm32/pins_STM32F1R.h 查看文件

@@ -119,7 +119,7 @@
119 119
     #define LCD_PINS_D7         PB15
120 120
     #if DISABLED(NEWPANEL)
121 121
       #define BEEPER_PIN        33
122
-      // Buttons are attached to a shift register
122
+      // Buttons attached to a shift register
123 123
       // Not wired yet
124 124
       //#define SHIFT_CLK 38
125 125
       //#define SHIFT_LD 42
@@ -230,7 +230,7 @@
230 230
       // Beeper on AUX-4
231 231
       #define BEEPER_PIN        33
232 232
 
233
-      // buttons are directly attached to AUX-2
233
+      // Buttons directly attached to AUX-2
234 234
       #if ENABLED(REPRAPWORLD_KEYPAD)
235 235
         #define BTN_EN1         64
236 236
         #define BTN_EN2         59

+ 2
- 2
Marlin/src/pins/stm32/pins_STM3R_MINI.h 查看文件

@@ -134,7 +134,7 @@
134 134
     #define LCD_PINS_D7    PB15
135 135
     #if DISABLED(NEWPANEL)
136 136
       #define BEEPER_PIN   33
137
-      // Buttons are attached to a shift register
137
+      // Buttons attached to a shift register
138 138
       // Not wired yet
139 139
       //#define SHIFT_CLK  38
140 140
       //#define SHIFT_LD   42
@@ -254,7 +254,7 @@
254 254
       // Beeper on AUX-4
255 255
       #define BEEPER_PIN   33
256 256
 
257
-      // buttons are directly attached to AUX-2
257
+      // Buttons directly attached to AUX-2
258 258
       #if ENABLED(REPRAPWORLD_KEYPAD)
259 259
         #define BTN_EN1    64
260 260
         #define BTN_EN2    59

Loading…
取消
儲存