very medium updates (GPIO info, part1)
Improvements for debugging GPIO conflicts. HTML UI integration still pending. * pinManager can be asked for pin owner (String) and pin special purpose (string). * wled.cpp: show GPIO allocation when compiling with WLED_DEBUG * pinmanager: show Pin Owner as name when possible. The results looks like this GPIO | Assigned to | Info --------|-----------------------|------------ i/o 0 Button i/o 1 debug Serial TX i/o 2 DMX out i/o 3 ./. Serial RX i/o 5 ./. SPI SS i/o 15 AudioReactive (UM) i/o 16 LEDs (digital) i/o 17 Relay i/o 18 ./. SPI CLK i/o 19 IR Receiver SPI MISO i/o 21 I2C I2C SDA i/o 22 I2C I2C SCL i/o 23 ./. SPI MOSI i/o 32 AudioReactive (UM)
This commit is contained in:
@@ -108,7 +108,8 @@ class PinManagerClass {
|
||||
bool isPinOk(byte gpio, bool output = true);
|
||||
|
||||
PinOwner getPinOwner(byte gpio);
|
||||
|
||||
String getPinOwnerText(int gpio); // WLEDMM
|
||||
String getPinSpecialText(int gpio); // WLEDMM
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
byte allocateLedc(byte channels);
|
||||
void deallocateLedc(byte pos, byte channels);
|
||||
|
||||
Reference in New Issue
Block a user