I'm near the end of my program and I'm stumped this is what I need
1) checks if its 12 hours into the program
then sets up a while loop
2) In the while loop it has 2 blinky's, one that blinks every 12 hours on off, and one that blinks for 20 seconds on off every 24 hours.
3) Then in 14 days, it breaks out of the loop and the whole program starts over.
I got the 1st Blinky, to turn on off every 12 hours, and only when its 12 hours into the program too. The second Blinky, shouldn't be too hard set up, using a for loop counter every second blink, some thing like that.
They don't have to be very accurate.
Lost how to to do this any hints would be appreciated.
Thanks
}
//Light and Topup
digitalWrite(7, LOW); //Nutrient Heater on
if (StartTime >= hours_in_ms(12)){
while(y){
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > interval) {
previousMillis = currentMillis;
if (ledState == LOW)
ledState = HIGH;
else
ledState = LOW;
digitalWrite(ledPin, ledState);
}