Przeglądaj źródła

Fix MKS Robin undefined pins error (#19507)

ellensp 3 lat temu
rodzic
commit
7efd740950
No account linked to committer's email address
1 zmienionych plików z 8 dodań i 6 usunięć
  1. 8
    6
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN.h

+ 8
- 6
Marlin/src/pins/stm32f1/pins_MKS_ROBIN.h Wyświetl plik

126
 #endif
126
 #endif
127
 #define LED_PIN                             PB2
127
 #define LED_PIN                             PB2
128
 
128
 
129
-#ifdef HAS_GRAPHICAL_TFT
130
-  #define TFT_RESET_PIN                     PF6
131
-  #define TFT_BACKLIGHT_PIN                 PG11
132
-  #define TFT_CS_PIN                        PG12  // NE4
133
-  #define TFT_RS_PIN                        PF0   // A0
134
-#else
129
+#if HAS_FSMC_TFT
135
   /**
130
   /**
136
    * Note: MKS Robin TFT screens use various TFT controllers
131
    * Note: MKS Robin TFT screens use various TFT controllers
137
    * Supported screens are based on the ILI9341, ST7789V and ILI9328 (320x240)
132
    * Supported screens are based on the ILI9341, ST7789V and ILI9328 (320x240)
148
   #define LCD_BACKLIGHT_PIN                 PG11
143
   #define LCD_BACKLIGHT_PIN                 PG11
149
   #define FSMC_CS_PIN                       PG12  // NE4
144
   #define FSMC_CS_PIN                       PG12  // NE4
150
   #define FSMC_RS_PIN                       PF0   // A0
145
   #define FSMC_RS_PIN                       PF0   // A0
146
+  #define TFT_CS_PIN                        FSMC_CS_PIN
147
+  #define TFT_RS_PIN                        FSMC_RS_PIN
151
 
148
 
152
   #define LCD_USE_DMA_FSMC                        // Use DMA transfers to send data to the TFT
149
   #define LCD_USE_DMA_FSMC                        // Use DMA transfers to send data to the TFT
153
   #define FSMC_DMA_DEV                      DMA2
150
   #define FSMC_DMA_DEV                      DMA2
154
   #define FSMC_DMA_CHANNEL               DMA_CH5
151
   #define FSMC_DMA_CHANNEL               DMA_CH5
152
+#elif HAS_GRAPHICAL_TFT
153
+  #define TFT_RESET_PIN                     PF6
154
+  #define TFT_BACKLIGHT_PIN                 PG11
155
+  #define TFT_CS_PIN                        PG12  // NE4
156
+  #define TFT_RS_PIN                        PF0   // A0
155
 #endif
157
 #endif
156
 
158
 
157
 #if NEED_TOUCH_PINS
159
 #if NEED_TOUCH_PINS

Ładowanie…
Anuluj
Zapisz