From c17819155f1d0431e59f5fb7fdef125b265ca948 Mon Sep 17 00:00:00 2001 From: DeltaLima Date: Thu, 5 Dec 2024 02:46:07 +0100 Subject: [PATCH] dont force an output sate while we dont know if they are inverted or not --- Arduino/CanGrow/CanGrow.ino | 9 ++++----- Arduino/CanGrow/CanGrow_Version.h | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index e286e24..ba04e03 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -73,11 +73,10 @@ void setup() { // set all OUTPUT to low digitalWrite(PINwaterlevel, LOW); - // For CanGrow 0.6 PCB this has to be HIGH, as its MOSFET driver - // is inverted. - digitalWrite(PinFAN, HIGH); - digitalWrite(PinLED, HIGH); - digitalWrite(PinPUMP, HIGH); + // its better to leave them untuched until we know from EEPROM if they have to be inverted or not + //~ digitalWrite(PinFAN, HIGH); + //~ digitalWrite(PinLED, HIGH); + //~ digitalWrite(PinPUMP, HIGH); // except PINsoilmoisture // PINsoilmoisture is always HIGH and gets LOW in moment of waterlevel measurement digitalWrite(PINsoilmoisture, HIGH); diff --git a/Arduino/CanGrow/CanGrow_Version.h b/Arduino/CanGrow/CanGrow_Version.h index ee9c0c1..674c1d7 100644 --- a/Arduino/CanGrow/CanGrow_Version.h +++ b/Arduino/CanGrow/CanGrow_Version.h @@ -1,5 +1,5 @@ /* CanGrow_Version.h gets generated from cangrow.sh */ const char* CanGrowVer = "0.1-dev"; -const char* CanGrowBuild = "26a0c66-20241205023254"; +const char* CanGrowBuild = "3c14910-20241205024405";