How about changing from this:
to something like this:Code:for i=0 to 4 lookup i,["23.56"],j lcdstr(i)=j next i
You would have to do something when your temperature goes to single digits though.Code:lcdstr(4) = 48 + temperature dig 3 lcdstr(3) = 48 + temperature dig 2 lcdstr(2) = "." lcdstr(1) = 48 + temperature dig 1 lcdstr(0) = 48 + temperature dig 0
Bookmarks