Page 1 of 1
Water level, internal memory and 1.0.7 libraries
Posted: Sat May 11, 2013 8:46 pm
by barbianj
With the new library release, I want to switch from code to internal memory. I am currently using this for code:
if (ReefAngel.WaterLevel.GetLevel()<42 && ReefAngel.WaterLevel.GetLevel()>0) ReefAngel.Relay.On(Port1);
if (ReefAngel.WaterLevel.GetLevel()>45) ReefAngel.Relay.Off(Port1);
Is this function handled through the wizard now, or do I still select standard ato and manually insert the code?
Re: Water level, internal memory and 1.0.7 libraries
Posted: Sat May 11, 2013 9:49 pm
by rimai
Re: Water level, internal memory and 1.0.7 libraries
Posted: Thu Jun 27, 2013 6:46 pm
by bencollinz
to elaborate...
Code: Select all
ReefAngel.WaterLevelATO( Port7,120,72,74 );
120 is the amount of seconds your port will stay on until it times out. 72% (my example) is when it would turn on and 74% is when it would turn off.
those variables you'd have to figure out on your own regarding how long it takes for your ato to go from this % to that %.
Re: Water level, internal memory and 1.0.7 libraries
Posted: Thu Jun 27, 2013 8:00 pm
by barbianj
bencollinz wrote:to elaborate...
Code: Select all
ReefAngel.WaterLevelATO( Port7,120,72,74 );
120 is the amount of seconds your port will stay on until it times out. 72% (my example) is when it would turn on and 74% is when it would turn off.
those variables you'd have to figure out on your own regarding how long it takes for your ato to go from this % to that %.
I have had the water level sensor working since it first came out. My question was regarding the use of internal memory. I've been using everything in code thus far. Thanks though.