avnish aggarwal / Mbed 2 deprecated Bootcamp-fatal-error-pot

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
avnisha
Date:
Mon Jun 24 05:49:35 2013 +0000
Commit message:
usb

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 455e8a85d3eb main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jun 24 05:49:35 2013 +0000
@@ -0,0 +1,13 @@
+
+#include "mbed.h"
+ 
+DigitalIn button(p21);
+AnalogIn pot(p20);
+ 
+int main() {
+    while(pot > 0.0) {
+        printf("Pot value = %f", pot.read());
+        wait(0.1);
+    }
+    error("Loop unexpectedly terminated");
+}
\ No newline at end of file
diff -r 000000000000 -r 455e8a85d3eb mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jun 24 05:49:35 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e6c9f46b3bd
\ No newline at end of file