Code: Select all
if( ReefAngel.DisplayedMenu==FEEDING_MODE ) {
ReefAngel.PWM.SetActinic(0);
} else {
ReefAngel.PWM.SetActinic(100);
}
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.
