Manish Baluja / Mbed 2 deprecated temp

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
manishb
Date:
Tue Jul 23 11:33:30 2019 +0000
Commit message:
lm35;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jul 23 11:33:30 2019 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+AnalogIn LM35(p15);
+
+int main() {
+    float value;
+    while(1) {
+                value = ((LM35.read()*3276)/10);            
+                printf("Temp: %2.2f degree C\r\n", value);
+        wait(1);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jul 23 11:33:30 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file