15#include "../../Utils/Math/Mathematics.h"
Manages PWM-based fan speed control.
uint8_t GetPWM()
Retrieves the current PWM value.
void SetSpeed(float ratio)
Sets the fan speed as a ratio of its maximum speed.
void Initialize()
Initializes the fan controller by setting up the pin for PWM output.
uint8_t pwm
The current PWM value (0-255).
uint8_t pin
The pin number connected to the fan's PWM input.
void SetPWM(uint8_t pwm)
Sets the PWM value to control the fan speed.