[M451] Use Timer to Drive RGB LED

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

18 May 2020, 15:01

  • Application: The code is a demonstration of how to use timer to drive RGB LED.
  • BSP Version: M451 Series BSP CMSIS v3.01.001
  • Hardware: NuEdu-SDK-M451 v1.2
Use Timer to control the various representations of the I/O display LED, including RGB dimming, flickering and common breathing lights, usually dimming is the way to set duty with
PWM, but when there are more LEDs than PWM, it is the turn of the Timer. Only one set of Timer timing is needed to process the I/O state.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1204164412
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests