mirror of
https://github.com/wled/WLED.git
synced 2025-07-09 11:56:35 +00:00
This commit is contained in:
parent
12db60885f
commit
35d92f43c0
@ -215,9 +215,8 @@ bool PinManager::isPinOk(byte gpio, bool output)
|
||||
// GPIO46 is input only and pulled down
|
||||
#else
|
||||
|
||||
Serial.printf("GPIO TEST %d\n\r", gpio);
|
||||
if (strncmp_P(PSTR("ESP32-U4WDH"), ESP.getChipModel(), 11) == 0) {
|
||||
Serial.println("U4WDH");
|
||||
if ((strncmp_P(PSTR("ESP32-U4WDH"), ESP.getChipModel(), 11) == 0) || // this is the correct identifier, but....
|
||||
(strncmp_P(PSTR("ESP32-PICO-D2"), ESP.getChipModel(), 13) == 0)) { // https://github.com/espressif/arduino-esp32/issues/10683
|
||||
// this chip has 4 MB of internal Flash and different packaging, so available pins are different!
|
||||
if ((gpio == 1) || (gpio == 3) || ((gpio >= 6) && (gpio <= 8)) ||
|
||||
(gpio == 11) || (gpio == 16) || (gpio == 17) || (gpio == 20) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user