test programma voor fading led

Dependencies:   mbed

Revision:
0:1929983c9cc5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 19 19:17:21 2015 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+PwmOut blauw(p25);
+float teller=0;
+int main() 
+{
+    while(1) 
+    {
+        blauw.period(0.002f);  
+        blauw.write(teller+0.01f);
+        teller=teller+0.01f;
+    }
+}