Drawing ATO port status

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Drawing ATO port status

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Drawing ATO port status

Post by rimai »

Roberto.
Piper
Posts: 304
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: Drawing ATO port status

Post 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
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Drawing ATO port status

Post by lnevo »

Perfect! Thanks Charlie!
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Drawing ATO port status

Post 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);
  }
User avatar
jsclownfish
Posts: 375
Joined: Mon Oct 24, 2011 7:52 pm
Location: Saint Louis

Re: Drawing ATO port status

Post 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
You do not have the required permissions to view the files attached to this post.
Post Reply