Browse Source

Merge pull request #7256 from thinkyhead/bf_cleanup_july_6

Assign -1 to LCD_PINS_D4-7 if not defined
Scott Lahteine 8 years ago
parent
commit
11e376e920
4 changed files with 13 additions and 12 deletions
  1. 13
    0
      Marlin/pins.h
  2. 0
    4
      Marlin/pins_CHEAPTRONIC.h
  3. 0
    4
      Marlin/pins_MINITRONICS.h
  4. 0
    4
      Marlin/pins_SAV_MKI.h

+ 13
- 0
Marlin/pins.h View File

472
   #define Z_MIN_PIN          -1
472
   #define Z_MIN_PIN          -1
473
 #endif
473
 #endif
474
 
474
 
475
+#ifndef LCD_PINS_D4
476
+  #define LCD_PINS_D4 -1
477
+#endif
478
+#ifndef LCD_PINS_D5
479
+  #define LCD_PINS_D5 -1
480
+#endif
481
+#ifndef LCD_PINS_D6
482
+  #define LCD_PINS_D6 -1
483
+#endif
484
+#ifndef LCD_PINS_D7
485
+  #define LCD_PINS_D7 -1
486
+#endif
487
+
475
 //
488
 //
476
 // Dual X-carriage, Dual Y, Dual Z support
489
 // Dual X-carriage, Dual Y, Dual Z support
477
 //
490
 //

+ 0
- 4
Marlin/pins_CHEAPTRONIC.h View File

81
 // Cheaptronic v1.0 doesn't support LCD
81
 // Cheaptronic v1.0 doesn't support LCD
82
 #define LCD_PINS_RS        -1
82
 #define LCD_PINS_RS        -1
83
 #define LCD_PINS_ENABLE    -1
83
 #define LCD_PINS_ENABLE    -1
84
-#define LCD_PINS_D4        -1
85
-#define LCD_PINS_D5        -1
86
-#define LCD_PINS_D6        -1
87
-#define LCD_PINS_D7        -1
88
 
84
 
89
 // Cheaptronic v1.0 doesn't support keypad
85
 // Cheaptronic v1.0 doesn't support keypad
90
 #define BTN_EN1            -1
86
 #define BTN_EN1            -1

+ 0
- 4
Marlin/pins_MINITRONICS.h View File

118
 
118
 
119
   #define LCD_PINS_RS      -1
119
   #define LCD_PINS_RS      -1
120
   #define LCD_PINS_ENABLE  -1
120
   #define LCD_PINS_ENABLE  -1
121
-  #define LCD_PINS_D4      -1
122
-  #define LCD_PINS_D5      -1
123
-  #define LCD_PINS_D6      -1
124
-  #define LCD_PINS_D7      -1
125
 
121
 
126
   // Buttons are directly attached using keypad
122
   // Buttons are directly attached using keypad
127
   #define BTN_EN1          -1
123
   #define BTN_EN1          -1

+ 0
- 4
Marlin/pins_SAV_MKI.h View File

155
 #define BEEPER_PIN         -1
155
 #define BEEPER_PIN         -1
156
 #define LCD_PINS_RS        -1
156
 #define LCD_PINS_RS        -1
157
 #define LCD_PINS_ENABLE    -1
157
 #define LCD_PINS_ENABLE    -1
158
-#define LCD_PINS_D4        -1
159
-#define LCD_PINS_D5        -1
160
-#define LCD_PINS_D6        -1
161
-#define LCD_PINS_D7        -1
162
 
158
 
163
 #if ENABLED(SAV_3DLCD)
159
 #if ENABLED(SAV_3DLCD)
164
   // For LCD SHIFT register LCD
160
   // For LCD SHIFT register LCD

Loading…
Cancel
Save