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) {