joewa / WS2812-LED-Driver_ChibiOS

LED Driver for WS2812B for ChibiOS
MIT License
9 stars 5 forks source link

Question regarding channel #4

Closed vitormhenrique closed 4 years ago

vitormhenrique commented 4 years ago

Your example on PA1 you use channel 0,

But looking over the data sheet PA1 should be TIM2 Channel 2, weirdly enough changing to channel 2 does not work, where did you find the information to the correct channel?

Screen Shot 2020-03-06 at 7 11 43 PM

vitormhenrique commented 4 years ago

I think I figure it out, the TIM channel number on the datasheet is from 1 to 4, but on Chibios the timer channel is from 0 to 3!