I made the display of temperature, but do not know how to check whether increased or decreased, given that temperature is shown in the format xx.xx
Can you help me with some examples?
Now let assume that your unformatted temperature reading is contained in a variable named New_Temp, then make available an additional variable (same type) and call it Old_Temp.
Write a subroutine that you will call all the time you want to check the temperature variation.
Code:
Temp_Sub:
IF New_Temp > Old_Temp Then LCDOUT "up arrow"
IF New_Temp = Old_Temp Then LCDOUT " "
IF New_Temp < Old_Temp Then LCDOUT "Dn arrow"
Old_Temp = New_Temp
Return
..... and you are in business.
Cheers
Al.
All progress began with an idea
Bookmarks