I know its on the forum somewhere but I couldn't find it.
How do code my WP25 and WP40 to use certain modes at certain times and any other time use whatever the portal is set to.
Coding Jebao mode - otherwise use portal
Re: Coding Jebao mode - otherwise use portal
Something like this:
Code: Select all
if (hour()>=7 and hour()<10)
{
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode(ShortPulse,30,70 );
}
else if (hour()>=10 || hour()<15)
{
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode(ReefCrest,30,10 );
}
else
{
ReefAngel.DCPump.UseMemory = true;
}
Roberto.
Re: Coding Jebao mode - otherwise use portal
Thanks, Robero
Is the speed the first or second variable.
Is the speed the first or second variable.
Re: Coding Jebao mode - otherwise use portal
Speed is the first.
There is code in my INO and in PaulTurner911 INO that lnevo did that will randomly choose a different mode every day.
There is code in my INO and in PaulTurner911 INO that lnevo did that will randomly choose a different mode every day.