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(PINsoilmoisture, OUTPUT);
|
||||||
pinMode(PINled, OUTPUT);
|
pinMode(PINled, OUTPUT);
|
||||||
pinMode(PINpump, OUTPUT);
|
pinMode(PINpump, OUTPUT);
|
||||||
|
pinMode(PIN_WIPE, OUTPUT);
|
||||||
|
|
||||||
|
|
||||||
// set all OUTPUT to low
|
// set all OUTPUT to low
|
||||||
|
@ -931,7 +932,7 @@ void setup() {
|
||||||
// and we can enjoy the boot screen meanwhile :p
|
// and we can enjoy the boot screen meanwhile :p
|
||||||
// meanwhile blink with the led onboad :)
|
// meanwhile blink with the led onboad :)
|
||||||
// 333 * 6 =~ 2 seconds
|
// 333 * 6 =~ 2 seconds
|
||||||
pinMode(PIN_WIPE, OUTPUT);
|
|
||||||
for(byte i = 0; i <= 6 ; i++) {
|
for(byte i = 0; i <= 6 ; i++) {
|
||||||
if(i % 2) {
|
if(i % 2) {
|
||||||
digitalWrite(PIN_WIPE, LOW);
|
digitalWrite(PIN_WIPE, LOW);
|
||||||
|
@ -944,7 +945,6 @@ void setup() {
|
||||||
digitalWrite(PIN_WIPE, HIGH);
|
digitalWrite(PIN_WIPE, HIGH);
|
||||||
//delay(2000);
|
//delay(2000);
|
||||||
|
|
||||||
pinMode(PIN_WIPE, INPUT);
|
|
||||||
// read status from PIN_WIPE to WIPE
|
// read status from PIN_WIPE to WIPE
|
||||||
// when PIN_WIPE is set to LOW, wipe EEPROM
|
// when PIN_WIPE is set to LOW, wipe EEPROM
|
||||||
if(digitalRead(PIN_WIPE) == LOW) {
|
if(digitalRead(PIN_WIPE) == LOW) {
|
||||||
|
|
Loading…
Reference in a new issue