From b02724ae5d16ee4069b0104f60acef0e0b68b081 Mon Sep 17 00:00:00 2001 From: Ollo Date: Fri, 29 Nov 2024 20:05:07 +0100 Subject: [PATCH] Temperatur is read --- include/controller.h | 6 +++--- src/main.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/controller.h b/include/controller.h index e1b8ad5..031a0b7 100644 --- a/include/controller.h +++ b/include/controller.h @@ -11,9 +11,9 @@ #ifndef FANLEDCTL_PINS #define FANLEDCTL_PINS -#define FAN_PIN 12 /**< Output Pin, controlling FAN speed via PWM */ -#define SIGNAL_PIN 13 /**< Input Pin, reading current FANs RPM*/ +#define FAN_PIN D6 /**< Output Pin, controlling FAN speed via PWM */ +#define SIGNAL_PIN D7 /**< Input Pin, reading current FANs RPM*/ -#define GPIO_DS18B20 D7 /**< One-Wire used for Dallas temperature sensor */ +#define GPIO_DS18B20 D2 /**< One-Wire used for Dallas temperature sensor */ #endif /* End FANLEDCTL_PINS */ \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 9edc4b1..32a329f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,7 +4,7 @@ #include "controller.h" -#define DELAY_TIME 10000 /**< time between measurements [ms] */ +#define DELAY_TIME 1000 /**< time between measurements [ms] */ #define MIN_FAN_SPEED_PERCENT 24 /**< minimum fan speed [%] */ #define MIN_TEMP 25 /**< turn fan off below [deg C] */ #define MAX_TEMP 40 /**< turn fan to full speed above [deg C] */