Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Ramonwaninge
Date:
Tue Sep 18 14:50:13 2018 +0000
Commit message:
Potmeter test 1

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 0c2f0befef33 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 18 14:50:13 2018 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+AnalogIn potmeter(A0);
+DigitalOut led(D9)
+
+
+
+int main()
+{
+   while(true){
+       if (potmeter > 0.4){
+           led = 1;
+           }
+        else{
+            led = 0;
+        }
+    }
+    
+  
+}
\ No newline at end of file
diff -r 000000000000 -r 0c2f0befef33 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Sep 18 14:50:13 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file