Skip to content

Commit

Permalink
pin info for PICO boards (cosmetic)
Browse files Browse the repository at this point in the history
pico boards don't have PSRAM, but they reserve 16+17 for embedded flash
  • Loading branch information
softhack007 committed Jan 2, 2024
1 parent f183977 commit 2265af5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wled00/pin_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ String PinManagerClass::getOwnerText(PinOwner tag) {
case PinOwner::Button : return(F("Button")); break; // 'Butn' == button from configuration
case PinOwner::IR : return(F("IR Receiver")); break; // 'IR' == IR receiver pin from configuration
case PinOwner::Relay : return(F("Relay")); break; // 'Rly' == Relay pin from configuration
#if defined(ARDUINO_ESP32_PICO)
case PinOwner::SPI_RAM : return(F("SPI FLASH")); break; // PICO boards use gpio 16+17 for embedded flash, not for PSRAM
#else
case PinOwner::SPI_RAM : return(F("PSRAM")); break; // 'SpiR' == SPI RAM (aka PSRAM)
#endif
case PinOwner::DMX : return(F("DMX out")); break; // 'DMX' == hard-coded to IO2
case PinOwner::HW_I2C : return(F("I2C (hw)")); break; // 'I2C' == hardware I2C pins (4&5 on ESP8266, 21&22 on ESP32)
case PinOwner::HW_SPI : return(F("SPI (hw)")); break; // 'SPI' == hardware (V)SPI pins (13,14&15 on ESP8266, 5,18&23 on ESP32)
Expand Down

0 comments on commit 2265af5

Please sign in to comment.