Anyway, share your favorite function, block of code, library call, whatever it is that you love, are happy with, etc. it doesn't even have to be custom or written by you. So if you love ReefAngel.StandardHeater(), let's hear about it!
Here's my contribution. I threw this together to automate my water changes and I'm quite pleased with how self contained and simple it became. It took a few tweaks to get working properly, but was pretty unchanged from the initial concept. If I had the right plumbing, I could make this a continuous gradual change.
Code: Select all
void autoWaterChange() {
byte wcReady=InternalMemory.read(Mem_B_WaterChange); // Trigger to start
int wcFillTime=InternalMemory.read_int(Mem_I_WCFillTime);
// Start automatic water change here.
ReefAngel.SingleATOHigh(Extension); // refill from SW bucket
// Find out if we are ready to start
if(wcReady)
{
wcTimer.SetInterval(wcFillTime); // One bucket at a time
wcTimer.Start();
InternalMemory.write(Mem_B_WaterChange, 0);
bitSet(ReefAngel.Relay.RelayMaskOff,ReactorBit); // Start draining
}
if(wcTimer.IsTriggered())
{
bitClear(ReefAngel.Relay.RelayMaskOff,ReactorBit); // Stop draining
}
}
