You are here

LED HW PWM??

2 posts / 0 new
Last post
milom
Offline
Last seen: 5 years 3 months ago
Joined: 2018-09-07 10:30
Posts: 1
LED HW PWM??

Hi friends, a question for benjamin, why use a PWM software for LEDs and not hardware? thank you...

benjamin
Offline
Last seen: 19 hours 3 min ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

The reason is that it does not occupy another timer just for LEDs, and that the LEDs can be moved to other pins easily for different hardware versions. The downside is that it occupies a few more CPU cycles and that the LEDs flicker a bit when dimmed, but I think it is a good tradeoff.