QuinLED_Dig_Uno_Temp_MQTT usermod

srg74, thank you for adding support for Quin’s temp sensor. I have a suggestion to improve support for it.

wled00.txt
#include <DallasTemperature.h>
OneWire oneWire(14);

Pin 14 is hardcoded which is fine for an 8266, but we need to use pin 18 for an ESP32.

My suggestion would be to do something like:
#include <DallasTemperature.h>
#ifdef ESP8266
#define ONE_WIRE_BUS 14
#else
#define ONE_WIRE_BUS 18
#endif
OneWire oneWire(ONE_WIRE_BUS);

Sound good? Is there a better way?

1 Like

Thank you for a feedback. I’m planning to implement support for both ESP8266 and ESP32 for my board which is similar to QuinLED board but with additional features. I will post info when it will be ready. Meanwhile you can check my git https://github.com/srg74/WLED-wemos-shield

@Slow2Git Hi! All features is added to UserMod for QuinLed board. So you can use it.

1 Like