Skip to content

Fix SK6812 PWM channel initialization on BlackPill - #2

Open
JohannesVoigt wants to merge 1 commit into
ukw100:mainfrom
JohannesVoigt:fix/blackpill-sk6812-tim3-ch4
Open

Fix SK6812 PWM channel initialization on BlackPill#2
JohannesVoigt wants to merge 1 commit into
ukw100:mainfrom
JohannesVoigt:fix/blackpill-sk6812-tim3-ch4

Conversation

@JohannesVoigt

Copy link
Copy Markdown

Fixes #1

The SK6812 output on the BlackPill uses PB1 / TIM3 channel 4, but sk6812_init() always initialized channel 1.
This change selects the correct output-compare initialization function for each board.

I tested it successfully on an STM32F411CEU6 BlackPill (25 MHz), MiniDev Shield v6 and SK6812 RGBW LEDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SK6812 output not working on STM32F401/F411 BlackPill due to wrong TIM3 channel initialization

1 participant