GPIO program for K64F boards
Dependencies: mbed DigitDisplay LED_Bar
main.cpp
- Committer:
- Niranjan_ravi
- Date:
- 2020-02-05
- Revision:
- 2:a1e7d7fa0db2
- Parent:
- 0:880457ab5a77
File content as of revision 2:a1e7d7fa0db2:
#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(2); if(x==500) { x=1; } } }