Skip to content

Commit f48895f

Browse files
committed
add gpio info for USERMOD_DALLASTEMPERATURE
1 parent ddad726 commit f48895f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

wled00/pin_manager.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,17 @@ String PinManagerClass::getPinSpecialText(int gpio) { // special purpose PIN in
217217
if (gpio == FLD_PIN_RESET) return(F("(default) 4lines disp. RESET"));
218218
#endif
219219
#endif
220-
220+
#ifdef USERMOD_DALLASTEMPERATURE
221+
#ifdef USERMOD_DHT_PIN
222+
if (gpio == USERMOD_DHT_PIN) return(F("(default) DHT temperature pin"));
223+
#else
224+
#ifdef ARDUINO_ARCH_ESP32
225+
if (gpio == 21) return(F("(default) DHT temperature pin"));
226+
#else
227+
if (gpio == 4) return(F("(default) DHT temperature pin"));
228+
#endif
229+
#endif
230+
#endif
221231
#if defined(USERMOD_MPU6050_IMU)
222232
#ifdef MPU6050_INT_GPIO
223233
if (gpio == MPU6050_INT_GPIO) return(F("(default) mpu6050 INT pin"));

0 commit comments

Comments
 (0)