Skip to content

Commit

Permalink
Fix SPI TFT Compile Errors on SKR V3
Browse files Browse the repository at this point in the history
Verified on an SKR V3.0 EZ with a BTT TFT35-SPI V1.0 and MKS TS35 V2.0
  • Loading branch information
thisiskeithb committed Jul 2, 2023
1 parent 3ea87ad commit d6c36d6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Marlin/src/pins/stm32h7/pins_BTT_SKR_V3_0_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,13 @@

#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI

#define TFT_SCK_PIN EXP2_02_PIN
#define TFT_MISO_PIN EXP2_01_PIN
#define TFT_MOSI_PIN EXP2_06_PIN

#define BTN_EN1 EXP2_03_PIN
#define BTN_EN2 EXP2_05_PIN

#define TFT_DC_PIN TFT_A0_PIN

#ifndef TFT_WIDTH
#define TFT_WIDTH 480
#endif
Expand All @@ -475,9 +477,10 @@

#if ENABLED(BTT_TFT35_SPI_V1_0)
// 480x320, 3.5", SPI Display with Rotary Encoder.
// Stock Display for the BIQU B1 SE.
// Stock Display for the BIQU B1 SE Series.
#define TFT_CS_PIN EXP2_04_PIN
#define TFT_A0_PIN EXP2_07_PIN
#define TFT_DC_PIN EXP2_07_PIN
#define TFT_A0_PIN TFT_DC_PIN

#define TOUCH_CS_PIN EXP1_04_PIN
#define TOUCH_SCK_PIN EXP1_05_PIN
Expand Down Expand Up @@ -513,7 +516,8 @@
* EXP1 EXP2
*/
#define TFT_CS_PIN EXP1_07_PIN // SPI1_CS
#define TFT_A0_PIN EXP1_08_PIN // SPI1_RS
#define TFT_DC_PIN EXP1_08_PIN // SPI1_RS
#define TFT_A0_PIN TFT_DC_PIN

#define TFT_RESET_PIN EXP1_04_PIN

Expand Down

0 comments on commit d6c36d6

Please sign in to comment.