![](/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:07220dd760cc
File content as of revision 0:07220dd760cc:
#include "mbed.h" PwmOut led(LED2); int main() { // specify period first, then everything else led.period(4.0f); // 4 second period led.write(0.50f); // 50% duty cycle while(1); // led flashing }