mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-04-19 12:57:19 +00:00
Merge pull request #768 from FreeBear-nc/bugfixes
Hide TFT-G5 & USB GPIO pins in web page
This commit is contained in:
commit
c91b98ac30
@ -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;
|
||||
|
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user