Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide TFT-G5 & USB GPIO pins in web page #768

Merged
merged 2 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/drv/tft/tft_driver_arduinogfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ bool ArduinoGfx::is_driver_pin(uint8_t pin)
#ifdef TFT_G4
|| (pin == TFT_G4)
#endif
#ifdef TFT_G5
|| (pin == TFT_G5)
#endif
#ifdef TFT_B0
|| (pin == TFT_B0)
#endif
Expand All @@ -361,6 +364,12 @@ bool ArduinoGfx::is_driver_pin(uint8_t pin)
#endif
#ifdef TOUCH_IRQ
|| (pin == TOUCH_IRQ)
#endif
#ifdef USB_TXD
|| (pin == USB_TXD)
#endif
#ifdef USB_RXD
|| (pin == USB_RXD)
#endif
) {
return true;
Expand Down
4 changes: 4 additions & 0 deletions user_setups/esp32s3/esp32-s3-4848S040.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ build_flags =
-D I2C_TOUCH_FREQUENCY=400000
-D I2C_TOUCH_ADDRESS=0x5D ; or 0x14
-D I2C_TOUCH_PORT=1
; USB GPIO - Only need to define these so that the pins do not
; show up in the list of available GPIO
-D USB_TXD=43
-D USB_RXD=44
;endregion

lib_deps =
Expand Down