From 6306cfff96b1c3ccf100b816cc9e7492d15d9bd6 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 24 Sep 2022 12:16:53 +0200 Subject: [PATCH] Remove Octal SPI pins. Whitespace. --- wled00/pin_manager.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wled00/pin_manager.cpp b/wled00/pin_manager.cpp index cb4872b7..fb1d3a99 100644 --- a/wled00/pin_manager.cpp +++ b/wled00/pin_manager.cpp @@ -237,21 +237,21 @@ bool PinManagerClass::isPinOk(byte gpio, bool output) if (digitalPinIsValid(gpio)) { #if defined(CONFIG_IDF_TARGET_ESP32C3) // strapping pins: 2, 8, & 9 - if ((gpio > 11) && (gpio < 18)) return false; // 11-17 SPI FLASH - if ((gpio > 17) && (gpio < 20)) return false; // 18-19 USB-JTAG + if (gpio > 11 && gpio < 18) return false; // 11-17 SPI FLASH + if (gpio > 17 && gpio < 20) return false; // 18-19 USB-JTAG #elif defined(CONFIG_IDF_TARGET_ESP32S3) // 00 to 18 are for general use. Be careful about straping pins GPIO0 and GPIO3 - these may be pulled-up or pulled-down on your board. if (gpio > 18 && gpio < 21) return false; // 19 + 20 = USB-JTAG. Not recommended for other uses. if (gpio > 21 && gpio < 33) return false; // 22 to 32: not connected + SPI FLASH - if (gpio > 32 && gpio < 38) return false; // 33 to 37: not available if using _octal_ SPI Flash or _octal_ PSRAM + //if (gpio > 32 && gpio < 38) return false; // 33 to 37: not available if using _octal_ SPI Flash or _octal_ PSRAM // 38 to 48 are for general use. Be careful about straping pins GPIO45 and GPIO46 - these may be pull-up or pulled-down on your board. #elif defined(CONFIG_IDF_TARGET_ESP32S2) // strapping pins: 0, 45 & 46 - if (gpio > 21 && gpio < 33) return false; // 22 to 32: not connected + SPI FLASH + if (gpio > 21 && gpio < 33) return false; // 22 to 32: not connected + SPI FLASH // JTAG: GPIO39-42 are usually used for inline debugging // GPIO46 is input only and pulled down #else - if (gpio > 5 && gpio < 12) return false; //SPI flash pins + if (gpio > 5 && gpio < 12) return false; //SPI flash pins #endif if (output) return digitalPinCanOutput(gpio); else return true;