Skip to content

Commit d35ae56

Browse files
tpruvotvgadreau
authored andcommitted
Fix Longer3D TFT defines, disable DMA (MarlinFirmware#19251)
1 parent 25f1054 commit d35ae56

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@
119119
*/
120120

121121
#define LCD_RESET_PIN PC4 // pin 33
122-
#define LCD_BACKLIGHT_PIN PD12 // pin 59
122+
#define TFT_RESET_PIN PC4 // pin 33
123+
#define TFT_BACKLIGHT_PIN PD12 // pin 59
123124
#define FSMC_CS_PIN PD7 // pin 88 = FSMC_NE1
124125
#define FSMC_RS_PIN PD11 // pin 58 A16 Register. Only one address needed
125126

126-
#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
127+
//#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT (broken)
127128
#define FSMC_DMA_DEV DMA2
128129
#define FSMC_DMA_CHANNEL DMA_CH5
129130

@@ -136,6 +137,8 @@
136137
#define TFT_PIXEL_OFFSET_X 32
137138
#define TFT_PIXEL_OFFSET_Y 32
138139

140+
//#define TFT_DRIVER ILI9341
141+
139142
/**
140143
* Note: Alfawise U20/U30 boards DON'T use SPI2, as the hardware designer
141144
* mixed up MOSI and MISO pins. SPI is managed in SW, and needs pins

0 commit comments

Comments
 (0)