Wp40 feed mode
Wp40 feed mode
I have my wp40 hooked up to the PWM port on the relay box and when I select feed mode it doesn't change it. How can I set the PWM ports on the relay box to turn off during feed mode?
Re: Wp40 feed mode
Code: Select all
if( ReefAngel.DisplayedMenu==FEEDING_MODE )
{
ReefAngel.PWM.SetActinic(0);
ReefAngel.PWM.SetDaylight(0);
}
Last edited by ReeferBee on Fri Jun 07, 2013 2:21 pm, edited 5 times in total.
Barry
Current tank info: 150g mixed reef
"Some of the worst mistakes of my life were hair cuts" -Jim Morrison
Current tank info: 150g mixed reef
"Some of the worst mistakes of my life were hair cuts" -Jim Morrison
Re: Wp40 feed mode
You could do something like this:jjdezek wrote:I have my wp40 hooked up to the PWM port on the relay box and when I select feed mode it doesn't change it. How can I set the PWM ports on the relay box to turn off during feed mode?
Code: Select all
if ( ReefAngel.DisplayedMenu == FEEDING_MODE ) {
ReefAngel.PWM.SetDaylight(0);
} else {
ReefAngel.PWM.SetDaylight(100);
}
What you would do, is put your standard controlling mode/functionality in the else statement where I set the PWM percent to 100%. There are lots of other examples on the forum, you just need to search for FEEDING_MODE and that should give you examples.
Re: Wp40 feed mode
So I just put that in the place custom code space?
Re: Wp40 feed mode
I would go with reeferbee's code and make sure it is the last thing before the
////place custom code above this line
////place custom code above this line