Merge pull request #768 from FreeBear-nc/bugfixes

Hide TFT-G5 & USB GPIO pins in web page
This commit is contained in:
fvanroie 2024-07-19 16:59:49 +02:00 committed by GitHub
commit c91b98ac30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -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
@ -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;

View File

@ -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 =