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.
Fork of VAT_LAB4_SERIALPOT by
Revision 0:2d898afba864, committed 2017-02-09
- 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 |
diff -r 000000000000 -r 2d898afba864 main.cpp
--- /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);
+ }
+}
+
+
+
+
diff -r 000000000000 -r 2d898afba864 mbed.bld --- /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
