Check if feeding mode is active

Do you have a question on how to do something.
Ask in here.
Post Reply
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Check if feeding mode is active

Post by binder »

Here's a piece of code that you can use:

Code: Select all

if( ReefAngel.DisplayedMenu==FEEDING_MODE ) {
   ReefAngel.PWM.SetActinic(0);
} else {
   ReefAngel.PWM.SetActinic(100);
}
Place this code inside your loop() function. This will check if you are in Feeding mode and if you are, it sets the PWM Actinic channel to 0% otherwise it puts it at 100%. You can obviously change those to do whatever you want, but that's a skeleton for you.

If you want to check for water change mode, just use "WATERCHANGE_MODE" instead of "FEEDING_MODE".
If you search the forum for either of those 2 phrases, you will find lots of examples.
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Check if feeding mode is active

Post by binder »

jerry27 wrote:ahh you gotta check the display... that explains why i couldnt figure it out. thanks alot. what part of indiana you in? im in fort wayne.
im north of terre haute
Post Reply