🎨 Minor cleanup of TFT/FSMC pins
This commit is contained in:
@@ -117,20 +117,28 @@
|
||||
//#undef Z_MAX_PIN // Uncomment if using ZMAX connector (PE5)
|
||||
#endif
|
||||
|
||||
#define TFT_RESET_PIN PC4 // pin 33
|
||||
#define TFT_BACKLIGHT_PIN PD12 // pin 59
|
||||
#define FSMC_CS_PIN PD7 // pin 88 = FSMC_NE1
|
||||
#define FSMC_RS_PIN PD11 // pin 58 A16 Register. Only one address needed
|
||||
//
|
||||
// TFT with FSMC interface
|
||||
//
|
||||
#if HAS_FSMC_TFT
|
||||
#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
|
||||
#define FSMC_CS_PIN PD7 // pin 88 = FSMC_NE1
|
||||
#define FSMC_RS_PIN PD11 // pin 58 A16 Register. Only one address needed
|
||||
#define FSMC_DMA_DEV DMA2
|
||||
#define FSMC_DMA_CHANNEL DMA_CH5
|
||||
|
||||
#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
|
||||
#define FSMC_DMA_DEV DMA2
|
||||
#define FSMC_DMA_CHANNEL DMA_CH5
|
||||
#define TFT_CS_PIN FSMC_CS_PIN
|
||||
#define TFT_RS_PIN FSMC_RS_PIN
|
||||
|
||||
#define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
|
||||
#define DOGLCD_SCK -1
|
||||
#define TFT_RESET_PIN PC4 // pin 33
|
||||
#define TFT_BACKLIGHT_PIN PD12 // pin 59
|
||||
|
||||
// Buffer for Color UI
|
||||
#define TFT_BUFFER_SIZE 3200
|
||||
#define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
|
||||
#define DOGLCD_SCK -1
|
||||
|
||||
// Buffer for Color UI
|
||||
#define TFT_BUFFER_SIZE 3200
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Note: Alfawise U20/U30 boards DON'T use SPI2, as the hardware designer
|
||||
|
||||
Reference in New Issue
Block a user