zoeksensor testprogramma

Dependencies:   mbed

Revision:
0:3595d15dd15c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jun 01 09:40:07 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;
+        }
+        }
+   
+   
+
+
+