aa

Dependencies:   mbed

Fork of VAT_LAB4_SERIALPOT by Anmol sardhalia

Files at this revision

API Documentation at this revision

Comitter:
anmolhardik
Date:
Thu Feb 09 10:51:04 2017 +0000
Commit message:
import

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	Thu Feb 09 10:51:04 2017 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+Serial pc (USBTX,USBRX);
+AnalogIn pot(PTB0);
+main()
+{
+    float value=0;
+    while(1)
+    {
+        value=pot.read()*3.3;
+        pc.printf("pot=%0.2f \n \r",value);
+        
+        wait(1.0);
+    }
+}
+
+    
+    
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Feb 09 10:51:04 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/176b8275d35d
\ No newline at end of file