Does anyone have a good float switch display? Maybe using the circle function to draw the LED lights red or green?
Thanks in advance.
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);
}
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);
}