Colin Hogben
/
pwm_regression
Demonstrate that PwmOut no longer works on FRDM-K64F with revision 120 of mbed
Revision 0:755478a682b2, committed 2016-05-12
- Comitter:
- infinnovation
- Date:
- Thu May 12 08:03:48 2016 +0000
- Commit message:
- First version
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 755478a682b2 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 12 08:03:48 2016 +0000 @@ -0,0 +1,17 @@ +// On FRDM-K64F, connect LED+330R between PTD0 (J2.6) and GND (J2.3) +// With revision 119 of mbed, LED is lit as expected. +// With revision 120 of mbed, the LED is not lit. +#include "mbed.h" + +int main() { + PwmOut p(PTD0); + while (1) { + int i; + for (i=0; i <=10; i++) { + p.write((float)i / 10); + wait_ms(500); + } + } + return 0; +} + \ No newline at end of file
diff -r 000000000000 -r 755478a682b2 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu May 12 08:03:48 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/aae6fcc7d9bb \ No newline at end of file