![](/media/cache/group/mbed-logo-square-512_3.png.50x50_q85.png)
Additional PwmOut example
main.cpp
- Committer:
- mab5449
- Date:
- 2017-01-19
- Revision:
- 0:248dfc85bbf9
File content as of revision 0:248dfc85bbf9:
#include "mbed.h" PwmOut led(LED2); int main() { // specify period first, then everything else led.period(4.0f); // 4 second period led.pulsewidth(2); // 2 second pulse (on) while(1); // led flashing }