firmware wip
This commit is contained in:
parent
99ac7069fa
commit
0d7e3cf79b
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue