I understand the whole "Teaching a man to fish" thing.
But at the end of the day, the guy's gotta be able to catch a fish.
To help prevent starvation, I need to toss in a fish here. And maybe a loaf of bread to go with it.<hr>
The Slope Intercept formula for the given data points would be ...
Y = (0.2751 * X) - 68
to do this in PBP with 1 decimal place @ 10-bit resolution ...Bon Appetite,Code:ADCIN 1, TempF TempF = TempF * 2751 TempF = DIV32 1000 TempF = TempF - 680 GOSUB ShowTemp '... ' --- Display a Signed Word with 1 decimal place --- ShowTemp: if TempF.15 = 1 then LCDOUT "-" TempF = ABS(TempF) LCDOUT DEC (TempF/10),".",DEC1 (TempF//10) Return





Bookmarks