From c7d98ef108304d995d11cd2835ce5889be971a3e Mon Sep 17 00:00:00 2001 From: c3ma Date: Sun, 16 May 2021 22:24:14 +0200 Subject: [PATCH] GPIO12 is evil --- board/PlantCtrlESP32.sch | 4 ++-- esp32/include/ControllerConfiguration.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/PlantCtrlESP32.sch b/board/PlantCtrlESP32.sch index 0d2d7f9..11f2008 100644 --- a/board/PlantCtrlESP32.sch +++ b/board/PlantCtrlESP32.sch @@ -2207,9 +2207,9 @@ Wire Wire Line 9800 5750 10100 5750 Wire Wire Line 9800 5450 9800 5350 -Text GLabel 11400 6350 2 50 Input ~ 0 -Temp Text GLabel 11400 6150 2 50 Input ~ 0 +Temp +Text GLabel 11400 6350 2 50 Input ~ 0 CUSTOM_GPIO1 Text GLabel 11400 6250 2 50 Input ~ 0 PLANT_CTRL_PUMP_1 diff --git a/esp32/include/ControllerConfiguration.h b/esp32/include/ControllerConfiguration.h index 462b6ab..bd914a9 100644 --- a/esp32/include/ControllerConfiguration.h +++ b/esp32/include/ControllerConfiguration.h @@ -65,12 +65,12 @@ #define OUTPUT_ENABLE_SENSOR 14 /**< GPIO 14 - Enable Sensors */ #define OUTPUT_ENABLE_PUMP 13 /**< GPIO 13 - Enable Pumps */ -#define SENSOR_ONEWIRE 12 /**< GPIO 12 - Temperatur sensor, Battery and other cool onewire stuff */ +#define SENSOR_ONEWIRE 4 /**< GPIO 12 - Temperatur sensor, Battery and other cool onewire stuff */ #define SENSOR_TANK_ECHO 16 /**< GPIO 16 - echo feedback of water sensor */ #define SENSOR_TANK_TRG 17 /**< GPIO 17 - trigger for water sensor */ #define BUTTON 0 /**< GPIO 0 - Fix button of NodeMCU */ #define CUSTOM1_PIN3 2 /**< GPIO 2 - Custom GPIO controlling a MOSFET, connected to GND */ -#define CUSTOM1_PIN2 4 /**< GPIO 4 - custom GPIO directly connected to GPIO header */ +#define CUSTOM1_PIN2 12 /**< GPIO 4 - custom GPIO directly connected to GPIO header */ #define I2C1_PIN2 34 /**< GPIO 34 - I2C */ #define I2C1_PIN3 35 /**< GPIO 35 - I2C */ /* @} */