ioTinkers / Mbed 2 deprecated lab4_1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Yeshwanth16
Date:
Mon Jul 30 05:15:33 2018 +0000
Commit message:
yo

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
diff -r 000000000000 -r e155bea1b5b0 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jul 30 05:15:33 2018 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+AnalogIn A(p20);
+Serial pc(USBTX,USBRX);
+
+int main(){
+    while(1){
+        float val=A;
+        pc.printf("%.2f",val);
+        wait(0.5);
+        }
+        }
+        
\ No newline at end of file
diff -r 000000000000 -r e155bea1b5b0 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jul 30 05:15:33 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/a7c7b631e539
\ No newline at end of file