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.
Dependencies: SB1602E SDFileSystem mbed
Diff: main.cpp
- Revision:
- 0:a84ca5aea16f
- Child:
- 1:758a4ce77b97
diff -r 000000000000 -r a84ca5aea16f main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon May 11 10:11:11 2015 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+AnalogIn sensor(dp13);
+Serial pc(USBTX, USBRX);
+
+int main() {
+ while(1) {
+ float Temperature;
+
+ Temperature = (sensor * 3.3 - 0.6) / 0.01;
+
+ pc.printf("Temperature = %f\r\n",Temperature);
+
+ wait(1.0);
+ }
+}