Posted: 03:36pm 12 May 2012 |
Copy link to clipboard |
Print this post |
|
Another option to display it would be:
PrintLCD 1,"Current Ambient temp is " + format$(Ambient_temp, "%+7.2f")
This will give a + or - symbol and the temperature with 2 digit precision
and alignment all in one. :)
The alignment and width is important if it has to be aligned with other values on the display. Adding a ; to the end of that line will allow you to display more info on the same line with the next PrintLCD command, like it is now the cursor will go to the start of the next line
* I am not sure if PrintLCD works exactly the same as Print with the ; at the end.
Maybe you can test that and report back.
Edited by TZAdvantage 2012-05-14 Microblocks. Build with logic. |