Browse Source

Assign -1 to LCD_PINS_D4-7 if not defined

Scott Lahteine 7 years ago
parent
commit
9248a90a4c
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

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

+ 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