Augusto Panecatl
/
FRDM-K64_PWM
FRDM-K64 PWM basic demo
main.cpp
- Committer:
- APanecatl
- Date:
- 2014-07-09
- Revision:
- 0:24a5f9b6fd64
File content as of revision 0:24a5f9b6fd64:
#include "mbed.h" //PWM output channel PwmOut PWM1(A5); int main() { PWM1.period_ms(500); int x; x=1; while(1) { PWM1.pulsewidth_ms(x); x=x+1; wait(.1); if(x==500) { x=1; } } }