il ritardo dello skimmer non è cosa facile mi è stato suggerito dagli amici americani di provarecon queste modifiche, io a dire il vero ancora non sono riuscito a provarle ma loro dicono che dorebbe funzionare
Ve le posto così se qualcuno le vuole testare:
void DelayedOn(byte Port, byte Delay)
{
unsigned int timer = Delay;
timer *= SECS_PER_MIN;
if ( (now() - RAStart) > timer ) ReefAngel.Relay.On(Port);
else ReefAngel.Relay.Off(Port); // this is probably overkill but ensures it is off
}
void loop()
{
// ... other stuff here
DelayedOn(Port4, 2); // 2 minute delay for starting up Port4
// ... other stuff here
}
__________________
|