Skip to content

Commit

Permalink
Merge pull request #768 from FreeBear-nc/bugfixes
Browse files Browse the repository at this point in the history
Hide TFT-G5 & USB GPIO pins in web page
  • Loading branch information
fvanroie authored Jul 19, 2024
2 parents bbd96b2 + e1a063d commit c91b98a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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

0 comments on commit c91b98a

Please sign in to comment.