testprogramma zoek sensor

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
bjorntukkertje
Date:
Thu Jun 01 09:42:55 2017 +0000
Commit message:
zoeksensor test

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 b970b568d832 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jun 01 09:42:55 2017 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+
+AnalogIn sensor(A5);
+PwmOut led (D2);
+Serial pc(USBTX, USBRX);
+
+float a ;
+int main () {
+
+    while (1) {
+        a= sensor;
+        pc.printf("%f\n", a);
+        wait_ms(200);
+        led = 0.9;
+        }
+        }
+   
+   
+
+
+
diff -r 000000000000 -r b970b568d832 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jun 01 09:42:55 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/86740a56073b
\ No newline at end of file