mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 12:16:42 +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
|
#ifdef TFT_G4
|
||||||
|| (pin == TFT_G4)
|
|| (pin == TFT_G4)
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef TFT_G5
|
||||||
|
|| (pin == TFT_G5)
|
||||||
|
#endif
|
||||||
#ifdef TFT_B0
|
#ifdef TFT_B0
|
||||||
|| (pin == TFT_B0)
|
|| (pin == TFT_B0)
|
||||||
#endif
|
#endif
|
||||||
@ -361,6 +364,12 @@ bool ArduinoGfx::is_driver_pin(uint8_t pin)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef TOUCH_IRQ
|
#ifdef TOUCH_IRQ
|
||||||
|| (pin == TOUCH_IRQ)
|
|| (pin == TOUCH_IRQ)
|
||||||
|
#endif
|
||||||
|
#ifdef USB_TXD
|
||||||
|
|| (pin == USB_TXD)
|
||||||
|
#endif
|
||||||
|
#ifdef USB_RXD
|
||||||
|
|| (pin == USB_RXD)
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -76,6 +76,10 @@ build_flags =
|
|||||||
-D I2C_TOUCH_FREQUENCY=400000
|
-D I2C_TOUCH_FREQUENCY=400000
|
||||||
-D I2C_TOUCH_ADDRESS=0x5D ; or 0x14
|
-D I2C_TOUCH_ADDRESS=0x5D ; or 0x14
|
||||||
-D I2C_TOUCH_PORT=1
|
-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
|
;endregion
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user