Shamis Sabah / microbit-thermometer

Dependencies:   microbit

Revision:
1:476ea02888de
Parent:
0:fbd1445cf962
diff -r fbd1445cf962 -r 476ea02888de main.cpp
--- a/main.cpp	Sat Mar 13 11:23:07 2021 +0000
+++ b/main.cpp	Fri Mar 19 05:42:27 2021 +0000
@@ -34,11 +34,13 @@
 
     // Insert your code here!
     while (true){
+        // Intro Message
         if (uBit.buttonA.isPressed())
             {
                 uBit.display.scroll("Touch and hold the processor and press button B to measure");
                 
             }
+        // Display DANGER! if temp greater than 37.8, else display SAFE!
         if (uBit.buttonB.isPressed())
             {
                 if (uBit.thermometer.getTemperature() > 37.8)