
example for using fast pwm
Example for the use of fast pwm on an stm nucleo F302R8.
main.cpp
- Committer:
- rouaze
- Date:
- 2016-03-31
- Revision:
- 4:f229692e352f
- Parent:
- 3:14ba055f4bb7
- Child:
- 5:41aafda546a3
File content as of revision 4:f229692e352f:
#include "mbed.h" #include "FastPWM.h" FastPWM fastpwm(D11,1); int main() { fastpwm.period_ticks (720); fastpwm.pulsewidth_ticks( 350); while(1) { } }