Skip to content

Commit

Permalink
missed flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorcelli committed Jan 15, 2025
1 parent 3008445 commit cdc3631
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions boards/CYD-2432S028.ini
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ build_flags =
-DSPI_TOUCH_FREQUENCY=2500000
-DTOUCH_CS=33

;TouchScreen Controller
-DHAS_TOUCH=1

;SD Card Setup pins
-DSDCARD_CS=5
-DSDCARD_SCK=18
Expand Down Expand Up @@ -218,9 +221,6 @@ build_flags =
${env:CYD-2432S028.build_flags}
;-DTFT_INVERSION_ON TFT is not color inverted
-DTFT_BL=27

;TouchScreen Controller
-DHAS_TOUCH=1

-DTOUCH_XPT2046_SPI
-DXPT2046_SPI_BUS_MOSI_IO_NUM=13
Expand Down
7 changes: 5 additions & 2 deletions boards/CYD-2432S028/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define CYD28_DISPLAY_VER_RES_MAX 240
CYD28_TouchR touch(CYD28_DISPLAY_HOR_RES_MAX, CYD28_DISPLAY_VER_RES_MAX);
#if defined(TOUCH_XPT2046_SPI)
#define XPT2046_CS DXPT2046_SPI_CONFIG_CS_GPIO_NUM
#define XPT2046_CS XPT2046_SPI_CONFIG_CS_GPIO_NUM
#else
#define XPT2046_CS 33
#endif
Expand All @@ -33,7 +33,10 @@ void _setup_gpio() {
Serial.println("Touch IC not Started");
log_i("Touch IC not Started");
} else log_i("Touch IC Started");
digitalWrite(XPT2046_CS, LOW);

#ifndef HAS_CAPACITIVE_TOUCH // Capacitive Touchscreen uses I2C to communicate
digitalWrite(XPT2046_CS, LOW);
#endif

}

Expand Down

0 comments on commit cdc3631

Please sign in to comment.