PWM on PB5 pin
Posted: Tue Apr 29, 2025 8:46 pm
Hi all
I have a PWM RGB led connected to PB5 (red), PB14 (green) and PB2 (blue) on a custom board with STM32L051T6.
Can someone confirm that PB5 is a PWM pin ?
From https://www.st.com/resource/en/datashee ... l051c6.pdfpage 42 it says TIM22_CH2, but when i do a analogWrite(PB5,255) does not output red. When doing analogWrite() on PB14 or PB2 it outputs the corresponding color.
Thanks
I have a PWM RGB led connected to PB5 (red), PB14 (green) and PB2 (blue) on a custom board with STM32L051T6.
Can someone confirm that PB5 is a PWM pin ?
From https://www.st.com/resource/en/datashee ... l051c6.pdfpage 42 it says TIM22_CH2, but when i do a analogWrite(PB5,255) does not output red. When doing analogWrite() on PB14 or PB2 it outputs the corresponding color.
Thanks