aa

Dependencies:   mbed

Fork of VAT_LAB4_SERIALPOT by Anmol sardhalia

Revision:
0:2d898afba864
--- /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);
+    }
+}
+
+    
+    
+