Re: Remote pump control ideas.
did you check that paperwork? it may have said when the battery was installed.
did you check that paperwork? it may have said when the battery was installed.
if ((bitRead(PIND, 5)== 1)) {commandTime = millis(); if (millis()-commandTime >= waitTime) {run = true;} }
if ((bitRead(PIND, 5)== 1)) {if (commandStarted == false) {CommandStarted = true; commandTime = millis();} if (millis()-commandTime >= debounceTime) {run = true;} } else {stopCommandStarted = false; }
extern state; Drive_LED() { state = OFF; while (FOREVER) { switch (state) { case OFF: LED = OFF; break; case ON: LED = ON; break; case BLINK: LED = ON; sleep(1000); // ON time, in milliseconds LED = OFF; sleep(500); // OFF time, in miliseconds break; default: break; } } }
Comment