No ACL setup yet! Denying access to everyone.
en:edu:zmitac:s2:aih:lab:stm32pwm

This is an old revision of the document!


STM32WB55 PMW LED control

Our laboratory board supports an RGB LED that can be controlled with a PWM signal. Red, Green and Blue LEDs are in the same enclosure but can be controlled separately. In the stm32duino examples 1), there is a simple program which allows us to control a single LED. It is named “All-in-one_setPWM” 2). It uses hardware timer output connected directly to an LED. Not every pin can work as the timer output, so this example requires proper selection of the pin connected internally to the PWM timer output. On the laboratory board, the pins used are as presented in table <ref>LEDpinassignment</ref>.

Tab. 1: Assignment of pins
GPIO noLED
D??? Red LED
D??? Green LED
D??? Blue LED
en/edu/zmitac/s2/aih/lab/stm32pwm.1702990252.txt.gz · Last modified: by ktokarz