test programma voor fading led

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
masterhorror
Date:
Thu Mar 19 19:17:21 2015 +0000
Commit message:
Fadingled blauw 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
--- /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;
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Mar 19 19:17:21 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file