Explorar el Código

CR10_STOCKDISPLAY support in Bigtreetech SKR (#13516)

drzejkopf hace 6 años
padre
commit
b1f739e27b
Se han modificado 1 ficheros con 28 adiciones y 13 borrados
  1. 28
    13
      Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h

+ 28
- 13
Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h Ver fichero

@@ -177,24 +177,39 @@
177 177
 |               EXP2                                              EXP1
178 178
 */
179 179
 #if ENABLED(ULTRA_LCD)
180
-  #define BEEPER_PIN       P1_30   // (37) not 5V tolerant
181
-  #define BTN_ENC          P0_28   // (58) open-drain
182
-  #define LCD_PINS_RS      P1_19
180
+  #define BEEPER_PIN        P1_30   // (37) not 5V tolerant
181
+  #define BTN_ENC           P0_28   // (58) open-drain
183 182
 
184
-  #define BTN_EN1          P3_26   // (31) J3-2 & AUX-4
185
-  #define BTN_EN2          P3_25   // (33) J3-4 & AUX-4
186
-  #define SD_DETECT_PIN    P1_31   // (49) (NOT 5V tolerant)
183
+  #if ENABLED(CR10_STOCKDISPLAY)
184
+    #define LCD_PINS_RS     P1_22
187 185
 
188
-  #define LCD_SDSS         P0_16   // (16) J3-7 & AUX-4
186
+    #define BTN_EN1         P1_18
187
+    #define BTN_EN2         P1_20
189 188
 
190
-  #define LCD_PINS_ENABLE  P1_18
191
-  #define LCD_PINS_D4      P1_20
189
+    #define LCD_PINS_ENABLE P1_23
190
+    #define LCD_PINS_D4     P1_21
191
+
192
+  #else
193
+
194
+    #define LCD_PINS_RS     P1_19
195
+
196
+    #define BTN_EN1         P3_26   // (31) J3-2 & AUX-4
197
+    #define BTN_EN2         P3_25   // (33) J3-4 & AUX-4
198
+    #define SD_DETECT_PIN   P1_31   // (49) (NOT 5V tolerant)
199
+
200
+    #define LCD_SDSS        P0_16   // (16) J3-7 & AUX-4
201
+
202
+    #define LCD_PINS_ENABLE P1_18
203
+    #define LCD_PINS_D4     P1_20
204
+
205
+    #if ENABLED(ULTIPANEL)
206
+      #define LCD_PINS_D5   P1_21
207
+      #define LCD_PINS_D6   P1_22
208
+      #define LCD_PINS_D7   P1_23
209
+    #endif
192 210
 
193
-  #if ENABLED(ULTIPANEL)
194
-    #define LCD_PINS_D5    P1_21
195
-    #define LCD_PINS_D6    P1_22
196
-    #define LCD_PINS_D7    P1_23
197 211
   #endif
212
+
198 213
 #endif // ULTRA_LCD
199 214
 
200 215
 //#define USB_SD_DISABLED

Loading…
Cancelar
Guardar