example for using fast pwm

Dependencies:   FastPWM mbed

Example for the use of fast pwm on an stm nucleo F302R8.

Committer:
rouaze
Date:
Thu Mar 31 12:24:57 2016 +0000
Revision:
4:f229692e352f
Parent:
3:14ba055f4bb7
Child:
5:41aafda546a3
example for using fast pwm

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rouaze 0:e89048c4d596 1 #include "mbed.h"
rouaze 0:e89048c4d596 2 #include "FastPWM.h"
rouaze 4:f229692e352f 3 FastPWM fastpwm(D11,1);
rouaze 0:e89048c4d596 4 int main() {
rouaze 4:f229692e352f 5 fastpwm.period_ticks (720);
rouaze 4:f229692e352f 6 fastpwm.pulsewidth_ticks( 350);
rouaze 0:e89048c4d596 7 while(1) {
rouaze 4:f229692e352f 8 }
rouaze 0:e89048c4d596 9 }