mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-14 06:46:38 +00:00
Allow HASP_USE_GPIO37 and HASP_USE_GPIO38 to enable GPIO37 and 38 on some boards #453
This commit is contained in:
parent
8148bbc988
commit
a99cc4ec53
@ -378,7 +378,12 @@ bool Esp32Device::is_system_pin(uint8_t pin)
|
||||
if((pin >= 33) && (pin <= 37)) return true; // octal flash or PSram
|
||||
#else
|
||||
if((pin >= 6) && (pin <= 11)) return true; // integrated SPI flash
|
||||
if((pin == 37) || (pin == 38)) return true; // unavailable
|
||||
#ifndef HASP_USE_GPIO37
|
||||
if(pin == 37) return true; // unavailable
|
||||
#endif
|
||||
#ifndef HASP_USE_GPIO38
|
||||
if(pin == 38) return true; // unavailable
|
||||
#endif
|
||||
if(psramFound() && ((pin == 16) || (pin == 17))) return true; // PSRAM
|
||||
|
||||
#endif
|
||||
@ -442,8 +447,9 @@ long Esp32Device::get_uptime()
|
||||
#if defined(LANBONL8)
|
||||
// #warning Building for Lanbon L8
|
||||
#include "dev/esp32/lanbonl8.h"
|
||||
#elif defined(M5STACK)
|
||||
// #warning Building for M5Stack core2
|
||||
|
||||
#elif defined(M5STACK) || defined(M5STACKLGFX)
|
||||
#warning Building for M5Stack core2
|
||||
#include "dev/esp32/m5stackcore2.h"
|
||||
#else
|
||||
dev::Esp32Device haspDevice;
|
||||
|
Loading…
x
Reference in New Issue
Block a user