kelvin de jager
/
mbed_fadingled
test programma voor fading led
Revision 0:1929983c9cc5, committed 2015-03-19
- 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