Skip to content

Commit

Permalink
missed macro
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorcelli committed Jan 15, 2025
1 parent ab0dbbd commit 3008445
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion boards/CYD-2432S028/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
#define CYD28_DISPLAY_HOR_RES_MAX 320
#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
#else
#define XPT2046_CS 33
#endif
#endif

/***************************************************************************************
Expand All @@ -20,7 +25,9 @@
** Description: initial setup for the device
***************************************************************************************/
void _setup_gpio() {
pinMode(XPT2046_CS, OUTPUT);
#ifndef HAS_CAPACITIVE_TOUCH // Capacitive Touchscreen uses I2C to communicate
pinMode(XPT2046_CS, OUTPUT);
#endif
//touchSPI.begin(XPT2046_CLK, XPT2046_MISO, XPT2046_MOSI, XPT2046_CS);
if(!touch.begin()) {
Serial.println("Touch IC not Started");
Expand Down

0 comments on commit 3008445

Please sign in to comment.