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:
- 0:89f745be63a8
- Child:
- 1:9b49379e8bf6
diff -r 000000000000 -r 89f745be63a8 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Apr 19 10:17:56 2012 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+
+#include "TMP102.h"
+
+TMP102 temperature(p9, p10, 0x90); //A0 pin is connected to ground
+
+int main()
+{
+ printf("Temperature: %f\n", temperature.read());
+ return 0;
+}
TMP102 Temperature Sensor