I'm sure this has been written to death but I can't find code that works.
I have a Single-type Water Expansion Module (not the float switch) and I want to:
Turn on Box1_port8 when the water level is 0 (empty)
Turn off Box1_port 8 when the water level is 100 <or some value> (full)
Display the current water level (detected by this sensor).
This sensor is inside of a ATO reservoir not directly in the sump. Basically the sensor should sense when the reservoir is low and fill it back up.
Additionally, can some one please tell me how to display the current intensity of a Vortech? I have code that shows what wave type its on but I can't get the intensity to display. Thanks.
Jeremiah
ATO Water Expansion (Single) Code
Re: ATO Water Expansion (Single) Code
The wizard does that, but here is the code:
60s timeout, 0% to 100% range.
For the RF speed, use something like this:
Code: Select all
ReefAngel.WaterLevelATO( Port1,60,0,100 );
For the RF speed, use something like this:
Code: Select all
char text[10];
ConvertNumToString(text, ReefAngel.RF.Speed, 1);
ReefAngel.LCD.DrawLargeText(DPColor, DefaultBGColor, 10, 10, text);
Roberto.
Re: ATO Water Expansion (Single) Code
Thanks Robert. I tried the code generated by the wizard earlier and it didn't work...initially. I just found that issue...I didn't calibrate the 0% and 100% properly .
Everything works great now. Thanks for your help.
Jeremiah
Everything works great now. Thanks for your help.
Jeremiah