Selaa lähdekoodia

Merge pull request #7256 from thinkyhead/bf_cleanup_july_6

Assign -1 to LCD_PINS_D4-7 if not defined
Scott Lahteine 8 vuotta sitten
vanhempi
commit
11e376e920
4 muutettua tiedostoa jossa 13 lisäystä ja 12 poistoa
  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 Näytä tiedosto

@@ -472,6 +472,19 @@
472 472
   #define Z_MIN_PIN          -1
473 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 489
 // Dual X-carriage, Dual Y, Dual Z support
477 490
 //

+ 0
- 4
Marlin/pins_CHEAPTRONIC.h Näytä tiedosto

@@ -81,10 +81,6 @@
81 81
 // Cheaptronic v1.0 doesn't support LCD
82 82
 #define LCD_PINS_RS        -1
83 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 85
 // Cheaptronic v1.0 doesn't support keypad
90 86
 #define BTN_EN1            -1

+ 0
- 4
Marlin/pins_MINITRONICS.h Näytä tiedosto

@@ -118,10 +118,6 @@
118 118
 
119 119
   #define LCD_PINS_RS      -1
120 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 122
   // Buttons are directly attached using keypad
127 123
   #define BTN_EN1          -1

+ 0
- 4
Marlin/pins_SAV_MKI.h Näytä tiedosto

@@ -155,10 +155,6 @@
155 155
 #define BEEPER_PIN         -1
156 156
 #define LCD_PINS_RS        -1
157 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 159
 #if ENABLED(SAV_3DLCD)
164 160
   // For LCD SHIFT register LCD

Loading…
Peruuta
Tallenna