Skip to content

Commit 35d92f4

Browse files
committed
1 parent 12db608 commit 35d92f4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: wled00/pin_manager.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,8 @@ bool PinManager::isPinOk(byte gpio, bool output)
215215
// GPIO46 is input only and pulled down
216216
#else
217217

218-
Serial.printf("GPIO TEST %d\n\r", gpio);
219-
if (strncmp_P(PSTR("ESP32-U4WDH"), ESP.getChipModel(), 11) == 0) {
220-
Serial.println("U4WDH");
218+
if ((strncmp_P(PSTR("ESP32-U4WDH"), ESP.getChipModel(), 11) == 0) || // this is the correct identifier, but....
219+
(strncmp_P(PSTR("ESP32-PICO-D2"), ESP.getChipModel(), 13) == 0)) { // https://github.com/espressif/arduino-esp32/issues/10683
221220
// this chip has 4 MB of internal Flash and different packaging, so available pins are different!
222221
if ((gpio == 1) || (gpio == 3) || ((gpio >= 6) && (gpio <= 8)) ||
223222
(gpio == 11) || (gpio == 16) || (gpio == 17) || (gpio == 20) ||

0 commit comments

Comments
 (0)