A Simple PWM LED.
Public Attributes#
void(*
Member function to set color of PWM LED.
void(*
Member function to get color of PWM LED.
uint8_t
TIMER channel.
GPIO_Port_TypeDef
LED port.
uint8_t
GPIO pin.
uint16_t
PWM duty cycle [0-65535].
uint8_t
GPIO polarity (active high/low)
Current state (ON/OFF)
TIMER_TypeDef *
TIMER instance.
uint32_t
PWM frequency.
uint32_t
PWM resolution (dimming steps)