Yes. You do this inside your PDE file. If you used RAGen to generate your PDE file, on the PDE tab at the bottom of the screen you will be able to "check" what ports get turned off in the different modes.projectx wrote:there a way to change what is set to on and off during feeding mode or water change mode?
If you did not use RAGen, you can manually add that functionality to your PDE file in the setup(). The code you will want is as follows:
Code: Select all
void setup()
{
ReefAngel.Init(); //Initialize controller
// Set the ports that get toggled on & off during the following modes
// To enable a port to be toggled, place a 1 in the appropriate position
// Uncomment and update as needed
// Port 87654321
//ReefAngel.FeedingModePorts = B10011100;
//ReefAngel.WaterChangePorts = B10011100;
//ReefAngel.OverheatShutoffPorts = B00001100;
//ReefAngel.LightsOnPorts = B00000110;
// Other initialization code goes here...
}