Sfoglia il codice sorgente

Assign -1 to LCD_PINS_D4-7 if not defined

Scott Lahteine 7 anni fa
parent
commit
9248a90a4c
4 ha cambiato i file con 13 aggiunte e 12 eliminazioni
  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 Vedi File

@@ -470,6 +470,19 @@
470 470
   #define Z_MIN_PIN          -1
471 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 487
 // Dual X-carriage, Dual Y, Dual Z support
475 488
 //

+ 0
- 4
Marlin/pins_CHEAPTRONIC.h Vedi File

@@ -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 Vedi File

@@ -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 Vedi File

@@ -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…
Annulla
Salva