Kaynağa Gözat

CR-10 Stock Display for SKR Mini 1.1 (#15215)

thisiskeithb 5 yıl önce
ebeveyn
işleme
66338ed515
1 değiştirilmiş dosya ile 44 ekleme ve 30 silme
  1. 44
    30
      Marlin/src/pins/stm32/pins_BIGTREE_SKR_MINI_V1_1.h

+ 44
- 30
Marlin/src/pins/stm32/pins_BIGTREE_SKR_MINI_V1_1.h Dosyayı Görüntüle

@@ -106,43 +106,55 @@
106 106
 #if HAS_SPI_LCD
107 107
   #define BEEPER_PIN       PC10
108 108
   #define BTN_ENC          PC11
109
-  #define LCD_PINS_RS      PC12
110 109
 
111
-  #define BTN_EN1          PD2
112
-  #define BTN_EN2          PB8
110
+  #if ENABLED(CR10_STOCKDISPLAY)
111
+    #define LCD_PINS_RS    PC15
113 112
 
114
-  #define LCD_PINS_ENABLE  PB6
113
+    #define BTN_EN1        PB6
114
+    #define BTN_EN2        PC13
115 115
 
116
-  #if ENABLED(FYSETC_MINI_12864)
116
+    #define LCD_PINS_ENABLE PC14
117
+    #define LCD_PINS_D4    PB7
117 118
 
118
-    #define LCD_BACKLIGHT_PIN -1
119
-    #define LCD_RESET_PIN  PC13
120
-    #define DOGLCD_A0      PC12
121
-    #define DOGLCD_CS      PB6
122
-    #define DOGLCD_SCK     PB3
123
-    #define DOGLCD_MOSI    PB5
119
+  #else
124 120
 
125
-    #define FORCE_SOFT_SPI   // SPI MODE3
121
+    #define LCD_PINS_RS      PC12
126 122
 
127
-    #define LED_PIN        PB7   // red pwm
128
-    //#define LED_PIN        PC15   // green
129
-    //#define LED_PIN        PC14   // blue
123
+    #define BTN_EN1          PD2
124
+    #define BTN_EN2          PB8
130 125
 
131
-    //#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
132
-    //  #ifndef RGB_LED_R_PIN
133
-    //    #define RGB_LED_R_PIN PB7
134
-    //  #endif
135
-    //  #ifndef RGB_LED_G_PIN
136
-    //    #define RGB_LED_G_PIN PC15
137
-    //  #endif
138
-    //  #ifndef RGB_LED_B_PIN
139
-    //    #define RGB_LED_B_PIN PC14
140
-    //  #endif
141
-    //#elif ENABLED(FYSETC_MINI_12864_2_1)
142
-    //  #define NEOPIXEL_PIN    PB7
143
-    //#endif
126
+    #define LCD_PINS_ENABLE  PB6
144 127
 
145
-  #else // !FYSETC_MINI_12864
128
+    #if ENABLED(FYSETC_MINI_12864)
129
+
130
+      #define LCD_BACKLIGHT_PIN -1
131
+      #define LCD_RESET_PIN  PC13
132
+      #define DOGLCD_A0      PC12
133
+      #define DOGLCD_CS      PB6
134
+      #define DOGLCD_SCK     PB3
135
+      #define DOGLCD_MOSI    PB5
136
+
137
+      #define FORCE_SOFT_SPI   // SPI MODE3
138
+
139
+      #define LED_PIN        PB7   // red pwm
140
+      //#define LED_PIN        PC15   // green
141
+      //#define LED_PIN        PC14   // blue
142
+
143
+      //#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
144
+      //  #ifndef RGB_LED_R_PIN
145
+      //    #define RGB_LED_R_PIN PB7
146
+      //  #endif
147
+      //  #ifndef RGB_LED_G_PIN
148
+      //    #define RGB_LED_G_PIN PC15
149
+      //  #endif
150
+      //  #ifndef RGB_LED_B_PIN
151
+      //    #define RGB_LED_B_PIN PC14
152
+      //  #endif
153
+      //#elif ENABLED(FYSETC_MINI_12864_2_1)
154
+      //  #define NEOPIXEL_PIN    PB7
155
+      //#endif
156
+
157
+    #else // !FYSETC_MINI_12864
146 158
 
147 159
     #define LCD_PINS_D4    PC13
148 160
     #if ENABLED(ULTIPANEL)
@@ -151,7 +163,9 @@
151 163
       #define LCD_PINS_D7  PC14
152 164
     #endif
153 165
 
154
-  #endif // !FYSETC_MINI_12864
166
+    #endif // !FYSETC_MINI_12864
167
+
168
+  #endif
155 169
 
156 170
 #endif // HAS_SPI_LCD
157 171
 

Loading…
İptal
Kaydet