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.
Diff: adc-pc.cpp
- Revision:
- 1:82052538b6d6
- Parent:
- 0:d288ab854d2c
--- a/adc-pc.cpp	Wed Aug 17 07:23:56 2016 +0000
+++ b/adc-pc.cpp	Sun Oct 09 08:39:05 2016 +0000
@@ -8,7 +8,8 @@
     pc.printf("Voltage Measurement");
 
     while(true) {   // this is the third thread
-        pc.printf("Voltage : %3.3f V \n",pot1.read()*3.3);
-        wait(1);
+        //pc.printf("Voltage : %3.3f V \n",pot1.read()*3.3);
+        pc.printf("%3.3f \n",pot1.read()*3.3);
+        wait(0.1);
     }
 }