Page 1 of 1

Drawing ATO port status

Posted: Sat Mar 23, 2013 7:59 am
by lnevo
Now that I have more screens to display info :)

Does anyone have a good float switch display? Maybe using the circle function to draw the LED lights red or green?

Thanks in advance.

Re: Drawing ATO port status

Posted: Sat Mar 23, 2013 8:13 am
by rimai

Re: Drawing ATO port status

Posted: Sat Mar 23, 2013 8:15 am
by Piper
Here's what I am using:

Code: Select all

  ReefAngel.LCD.DrawText(COLOR_MIDNIGHTBLUE,DefaultBGColor,98,x, "ATO");
  ReefAngel.LCD.DrawLargeText(COLOR_INDIGO,DefaultBGColor, 88, x + 7, "H", Font8x16);
  ReefAngel.LCD.DrawLargeText(COLOR_INDIGO,DefaultBGColor, 121, x + 7, "L", Font8x16);
  if (ReefAngel.HighATO.IsActive()) {
    ReefAngel.LCD.FillCircle(102,x + 14,5,COLOR_GREEN);
  } else {
    ReefAngel.LCD.FillCircle(102,x + 14,5,COLOR_RED);
  }

  if (ReefAngel.LowATO.IsActive()) {
    ReefAngel.LCD.FillCircle(114,x + 14,5,COLOR_GREEN);
  } else {
    ReefAngel.LCD.FillCircle(114,x + 14,5,COLOR_RED);
  }
I found it (or something close to it) in someones custom main screen and borrowed it. I cannot recall who came up with it but it is in the custom main thread somewhere.

~Charlie

Drawing ATO port status

Posted: Sat Mar 23, 2013 10:23 am
by lnevo
Perfect! Thanks Charlie!

Re: Drawing ATO port status

Posted: Sat Mar 23, 2013 11:27 am
by lnevo
Ended up with this:

Code: Select all

  ReefAngel.LCD.DrawLargeText(COLOR_INDIGO,DefaultBGColor,15,y,"High",Font8x16);
  ReefAngel.LCD.DrawLargeText(COLOR_INDIGO,DefaultBGColor,85,y,"Low",Font8x16);
  if (ReefAngel.HighATO.IsActive()) {
    ReefAngel.LCD.FillCircle(55,y+3,5,COLOR_GREEN);
  } else {
    ReefAngel.LCD.FillCircle(55,y+3,5,COLOR_RED);
  }

  if (ReefAngel.LowATO.IsActive()) {
    ReefAngel.LCD.FillCircle(70,y+3,5,COLOR_GREEN);
  } else {
    ReefAngel.LCD.FillCircle(70,y+3,5,COLOR_RED);
  }

Re: Drawing ATO port status

Posted: Sat Mar 30, 2013 2:24 pm
by jsclownfish
I originally used them like this on my 2nd monitor: http://forum.reefangel.com/viewtopic.php?f=11&t=923.
My main screen float status is a little more simple so it takes up less room and I have extra float sensors in the overflow and ato reservoir. I haven't converted the main to multiple screens yet as the 2nd monitor handles that task now.

Here is what my current main screen looks like...
RA main.jpg



Jon