GPIO info - more infos

- include -S3, -S2, -C3
- include fixed hardware pins, and WLED default pins
This commit is contained in:
Frank
2022-12-02 17:53:54 +01:00
parent aa5169b5f5
commit 61f062d0e5
2 changed files with 96 additions and 29 deletions

View File

@@ -478,7 +478,7 @@ void WLED::setup()
Serial.println(F("--------|-----------------------|------------"));
for(int pinNr = 0; pinNr < 50; pinNr++) { // 49 = highest PIN on ESP32-S3
if(pinManager.isPinOk(pinNr, false)) {
if ((!pinManager.isPinAllocated(pinNr)) && (pinManager.getPinSpecialText(pinNr).length() == 0)) continue; // comment out to also show unused GPIO pins
if ((!pinManager.isPinAllocated(pinNr)) && (pinManager.getPinSpecialText(pinNr).length() == 0)) continue; // comment out to include no-name,unused GPIO pins
bool is_inOut = pinManager.isPinOk(pinNr, true);
Serial.printf("%s %2d\t %-18s\t %s\n",
(is_inOut?"i/o":"in "),