From 0d7e3cf79bf1023d4210445a3fae7449266c187f Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 18 Apr 2024 16:04:40 +0200 Subject: [PATCH] firmware wip --- Arduino/CanGrow/CanGrow.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index ffaf59d..676c8ee 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -886,6 +886,7 @@ void setup() { pinMode(PINsoilmoisture, OUTPUT); pinMode(PINled, OUTPUT); pinMode(PINpump, OUTPUT); + pinMode(PIN_WIPE, OUTPUT); // set all OUTPUT to low @@ -931,7 +932,7 @@ void setup() { // and we can enjoy the boot screen meanwhile :p // meanwhile blink with the led onboad :) // 333 * 6 =~ 2 seconds - pinMode(PIN_WIPE, OUTPUT); + for(byte i = 0; i <= 6 ; i++) { if(i % 2) { digitalWrite(PIN_WIPE, LOW); @@ -944,7 +945,6 @@ void setup() { digitalWrite(PIN_WIPE, HIGH); //delay(2000); - pinMode(PIN_WIPE, INPUT); // read status from PIN_WIPE to WIPE // when PIN_WIPE is set to LOW, wipe EEPROM if(digitalRead(PIN_WIPE) == LOW) {