Colin Hogben
/
pwm_regression
Demonstrate that PwmOut no longer works on FRDM-K64F with revision 120 of mbed
main.cpp
- Committer:
- infinnovation
- Date:
- 2016-05-12
- Revision:
- 0:755478a682b2
File content as of revision 0:755478a682b2:
// 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; }