need custom PDE help

Share you PDE file with our community

Posts: 329
Joined: Fri May 17, 2013 1:35 pm
PostPosted: Tue Jun 11, 2013 5:07 am
i changed these numbers and it moved the codes up to the top. what im not understanding is how do i get the ATO to display on the screen?

Code: Select all
ReefAngel.LCD.DrawMonitor(15, 10, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue());
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor(15, 10, ReefAngel.Params.);
Image
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Jun 11, 2013 5:12 am
You need to add DrawStatus(x,y); inside the DrawCustomMain function. with x and y being the coordinates where you want it.

Posts: 329
Joined: Fri May 17, 2013 1:35 pm
PostPosted: Tue Jun 11, 2013 5:26 am
so i would put something like
DrawStatus(15,50)
and just plug it in anywhere in the drawcustommain?
Image
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Jun 11, 2013 5:31 am
By Jove, I think he's got it!
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Jun 11, 2013 5:32 am
Don't forget the semicolon after the last parenthesis.

Posts: 329
Joined: Fri May 17, 2013 1:35 pm
PostPosted: Tue Jun 11, 2013 5:37 am
haha awesome got it. ok next step. how do you make the temp 1 text larger? along with ph?
Image

Posts: 329
Joined: Fri May 17, 2013 1:35 pm
PostPosted: Tue Jun 11, 2013 5:49 am
Image
Image
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Jun 11, 2013 5:52 am
You'll need to replace the current drawing of those parameters with the other function I gave you.

DrawParams(x,y);

Posts: 329
Joined: Fri May 17, 2013 1:35 pm
PostPosted: Tue Jun 11, 2013 6:03 am
so i replace this
Code: Select all
ReefAngel.LCD.DrawMonitor(15, 10, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue());
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor(15, 10, ReefAngel.Params.);

with this
Code: Select all
ConvertNumToString(buf, ReefAngel.Params.Temp[T1_PROBE], 10);
  ReefAngel.LCD.DrawLargeText(T1TempColor, DefaultBGColor, x+5, y, buf, Num8x16);
  ConvertNumToString(buf, ReefAngel.Params.PH, 100);
  ReefAngel.LCD.DrawLargeText(PHColor, DefaultBGColor, x+80, y, buf, Num8x16);
  y+=5;
  ReefAngel.LCD.DrawText(T3TempColor, DefaultBGColor, x+45, y, buf);
}
Image

Posts: 329
Joined: Fri May 17, 2013 1:35 pm
PostPosted: Tue Jun 11, 2013 6:08 am
or just plug in the DrawParams (15,10);
Image
PreviousNext

Return to My PDE/INO file

Who is online

Users browsing this forum: No registered users and 1 guest

cron