Parcourir la source

🚑️ Fix TFT for Robin Pro (#21900)

Victor Oliveira il y a 4 ans
Parent
révision
2a5ab55c36
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 11 ajouts et 1 suppressions
  1. 11
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h

+ 11
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h Voir le fichier

@@ -213,6 +213,9 @@
213 213
 #if HAS_FSMC_TFT
214 214
   #define FSMC_CS_PIN                       PD7   // NE4
215 215
   #define FSMC_RS_PIN                       PD11  // A0
216
+  #define FSMC_DMA_DEV                      DMA2
217
+  #define FSMC_DMA_CHANNEL               DMA_CH5
218
+  #define LCD_USE_DMA_FSMC                        // Use DMA transfers to send data to the TFT
216 219
   #define TFT_CS_PIN                 FSMC_CS_PIN
217 220
   #define TFT_RS_PIN                 FSMC_RS_PIN
218 221
 
@@ -221,8 +224,15 @@
221 224
   #define TFT_RESET_PIN            LCD_RESET_PIN
222 225
   #define TFT_BACKLIGHT_PIN    LCD_BACKLIGHT_PIN
223 226
 
227
+  #define TFT_BUFFER_SIZE                  14400
228
+
224 229
   #if NEED_TOUCH_PINS
225
-    #define TOUCH_CS_PIN                    PA7
230
+    #define TOUCH_BUTTONS_HW_SPI
231
+    #define TOUCH_BUTTONS_HW_SPI_DEVICE        2
232
+    #define TOUCH_CS_PIN                    PA7   // SPI2_NSS
233
+    #define TOUCH_SCK_PIN                   PB13  // SPI2_SCK
234
+    #define TOUCH_MISO_PIN                  PB14  // SPI2_MISO
235
+    #define TOUCH_MOSI_PIN                  PB15  // SPI2_MOSI
226 236
   #else
227 237
     #define BEEPER_PIN                      PC5
228 238
     #define BTN_ENC                         PG2

Chargement…
Annuler
Enregistrer