Exit water change mode programmatically?
Posted: Fri May 17, 2013 9:42 pm
Is there a way to exit the water change mode programmatically? i.e. If I want to use the IO module to trigger the water change mode using ReefAngel.WaterChangeModeStart() how can I get out of feeding mode? Or simulate a button press...
~Charlie
Code: Select all
// Clear the auto feeder
if (autoFeederTriggered == true) {
IOSetChannel(IO_Port_1,LOW); // Sets channel 0 to LOW
autoFeederTriggered = false;
}
if(!ReefAngel.IO.GetChannel(IO_Port_6)) {
// Trigger the auto feeder
IOSetChannel(IO_Port_1,HIGH); // Sets channel 0 to HIGH
autoFeederTriggered = true;
}
if(!ReefAngel.IO.GetChannel(IO_Port_5)) {
// ReefAngel.FeedingModeStart();
// Strart water change mode
ReefAngel.WaterChangeModeStart();
ReefAngel.CustomVar[6] = 6;
}