Merge branch 'mdev' into dmx_input
This commit is contained in:
@@ -41,13 +41,17 @@ 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)
|
||||
case PinOwner::DMX_INPUT : return(F("DMX Input")); break;
|
||||
|
||||
case PinOwner::UM_Audioreactive : return(F("AudioReactive (UM)")); break; // audioreative usermod - analog or digital audio input
|
||||
case PinOwner::UM_Audioreactive : return(F("AudioReactive (UM)")); break; // audioreactive usermod - analog or digital audio input
|
||||
case PinOwner::UM_Temperature : return(F("Temperature (UM)")); break; // "usermod_temperature.h"
|
||||
case PinOwner::UM_PIR : return(F("PIR (UM)")); break; // "usermod_PIR_sensor_switch.h"
|
||||
case PinOwner::UM_IMU : return(F("IMU mpu6050 (UM)")); break; // "usermod_mpu6050_imu.h"
|
||||
@@ -62,6 +66,7 @@ String PinManagerClass::getOwnerText(PinOwner tag) {
|
||||
case PinOwner::UM_SdCard : return(F("SD-Card (UM)")); break; // "usermod_sd_card.h" -- Uses SPI pins
|
||||
case PinOwner::UM_PWM_OUTPUTS : return(F("PWM Output (UM)")); break; // "usermod_pwm_outputs.h"
|
||||
case PinOwner::UM_Battery : return(F("Battery (UM)")); break; // "usermod_battery.h"
|
||||
case PinOwner::UM_LDR_DUSK_DAWN : return(F("LDR dusk/dawn (UM)")); break; // "usermod_LDR_Dusk_Dawn_v2.h"
|
||||
|
||||
case PinOwner::UM_Example : return(F("example (UM)")); break; // unspecified usermod
|
||||
case PinOwner::UM_Unspecified : return(F("usermod (UM)")); break; // unspecified usermod
|
||||
@@ -73,7 +78,7 @@ String PinManagerClass::getPinSpecialText(int gpio) { // special purpose PIN in
|
||||
if ((gpio == 0xFF) || (gpio < 0)) return(F("")); // explicitly allow -1 as a no-op
|
||||
|
||||
#ifdef USERMOD_AUDIOREACTIVE
|
||||
// audioreactive settings - unfortunately, these are hiddden inside usermod now :-(
|
||||
// audioreactive settings - unfortunately, these are hidden inside usermod now :-(
|
||||
// if((gpio == audioPin) && (dmType == 0)) return(F("analog audio in"));
|
||||
// if((gpio == i2ssdPin) && (dmType > 0)) return(F("I2S SD"));
|
||||
// if((gpio == i2swsPin) && (dmType > 0)) return(F("I2S WS"));
|
||||
@@ -273,7 +278,7 @@ String PinManagerClass::getPinConflicts(int gpio) {
|
||||
|
||||
if ((ownerConflict[gpio] == PinOwner::None) || (ownerTag[gpio] == ownerConflict[gpio])) { // no conflict, or "fake" conflict with current owner
|
||||
return(F("")); // no conflict fot this GPIO
|
||||
} else { // found previous conflic!
|
||||
} else { // found previous conflict!
|
||||
return String("!! Conflict with ") + getOwnerText(ownerConflict[gpio]) + String(" !!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user