Wp40 feed mode
-
jjdezek
- Posts: 327
- Joined: Fri May 17, 2013 1:35 pm
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?
-
ReeferBee
- Posts: 55
- Joined: Wed May 08, 2013 6:23 pm
- Location: North GA
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
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
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.
-
jjdezek
- Posts: 327
- Joined: Fri May 17, 2013 1:35 pm
- lnevo
- Posts: 5422
- Joined: Fri Jul 20, 2012 9:42 am
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
