The Thermometer section will run a loop. For each iteration, the raw temperature value is obtained and converted to Celsius and Fahrenheit values. The Celsius value is displayed on the LCD screen for two seconds. During these two seconds S2 is checked twice (i.e. once per second); if S2 is pressed the loop will terminate. Similarly, the Fahrenheit value is displayed on the LCD screen for two seconds. During these two seconds S2 is also checked twice (i.e. once per second); if S2 is pressed, the loop will terminate.
Comments
Leave a comment