Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 1:476ea02888de
- Parent:
- 0:fbd1445cf962
--- 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)