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:d2396e83a3b9
- Parent:
- 0:052ced68c756
diff -r 052ced68c756 -r d2396e83a3b9 main.cpp
--- a/main.cpp Wed Aug 13 13:44:15 2014 +0000
+++ b/main.cpp Sat Aug 16 11:33:44 2014 +0000
@@ -12,7 +12,7 @@
wait(1); // wait 1 sec for device stable
while (true) {
- myled = 1;
+ myled = 0; // 0: on
err = sensor.readData();
if (err == 0) {
pc.printf("Temperature is %4.2f C \r\n", sensor.ReadTemperature(CELCIUS));
@@ -24,7 +24,7 @@
else {
printf("\r\nErr %i \n", err);
}
- myled = 0;
+ myled = 1;
wait(15);
}
}