From 4d5bb274d1f0bdcb67fbda66a7eaea30c2a90831 Mon Sep 17 00:00:00 2001 From: 400killer <38986787+400killer@users.noreply.github.com> Date: Fri, 29 Nov 2019 11:58:40 -0800 Subject: [PATCH] Create wled00.txt Definitions needed for reading the Dallas temp sensor used on the QuinLED boards. --- usermods/QuinLED_Dig_Uno_Temp_MQTT/wled00.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 usermods/QuinLED_Dig_Uno_Temp_MQTT/wled00.txt diff --git a/usermods/QuinLED_Dig_Uno_Temp_MQTT/wled00.txt b/usermods/QuinLED_Dig_Uno_Temp_MQTT/wled00.txt new file mode 100644 index 000000000..661a7e249 --- /dev/null +++ b/usermods/QuinLED_Dig_Uno_Temp_MQTT/wled00.txt @@ -0,0 +1,8 @@ +//Intiating code for QuinLED Dig-Uno temp sensor +//Uncomment Celsius if that is your prefered temperature scale +#include +OneWire oneWire(14); +DallasTemperature sensors(&oneWire); +long temptimer = millis(); +long lastMeasure = 0; +//#define Celsius