This is an example of PWM on the STM32L476 Discovery board using the default PWM pin of PB3. This counts up to 100% (On) then counts down 0% (Off) and then counts up, repeating the pattern over and over.

Dependencies:   mbed

Download repository: zip gz

Files at revision 3:9aa9bfe031bb

Name Size Actions
[up]
main.cpp 1034 Revisions Annotate
mbed.bld 66 Revisions Annotate