mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 05:06:44 +00:00
Set integrated SPI flash pins as system pins
This commit is contained in:
parent
309a06186b
commit
806232b69f
@ -463,13 +463,14 @@ bool gpioIsSystemPin(uint8_t gpio)
|
|||||||
// Tasmota Slave GPIOs
|
// Tasmota Slave GPIOs
|
||||||
|
|
||||||
#ifdef ARDUINO_ARCH_ESP32
|
#ifdef ARDUINO_ARCH_ESP32
|
||||||
|
if((gpio >= 6) && (gpio <= 11)) return true; // integrated SPI flash
|
||||||
if(psramFound()) {
|
if(psramFound()) {
|
||||||
if((gpio == 16) || (gpio == 17)) return true; // PSRAM
|
if((gpio == 16) || (gpio == 17)) return true; // PSRAM
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ARDUINO_ARCH_ESP8266
|
#ifdef ARDUINO_ARCH_ESP8266
|
||||||
if((gpio >= 6) && (gpio <= 11)) return true; // VSPI
|
if((gpio >= 6) && (gpio <= 11)) return true; // integrated SPI flash
|
||||||
#ifndef TFT_SPI_OVERLAP
|
#ifndef TFT_SPI_OVERLAP
|
||||||
if((gpio >= 12) && (gpio <= 14)) return true; // HSPI
|
if((gpio >= 12) && (gpio <= 14)) return true; // HSPI
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user