Corsair Lighting Protocol  0.15.0
Control LEDs connected to an Arduino with iCUE
PWMFan Class Reference

Public Member Functions

 PWMFan (uint8_t pwmPin, uint16_t minRPM, uint16_t maxRPM)
 
virtual void setPower (uint8_t percentage)
 
virtual uint8_t calculatePowerFromSpeed (uint16_t rpm)
 
virtual uint16_t calculateSpeedFromPower (uint8_t power)
 

Protected Attributes

const uint8_t pwmPin
 
const uint16_t minRPM
 
const uint16_t maxRPM
 

Constructor & Destructor Documentation

◆ PWMFan()

PWMFan::PWMFan ( uint8_t  pwmPin,
uint16_t  minRPM,
uint16_t  maxRPM 
)

PWM fan which maps speed to power using linear interpolation. This fan does not read the real RPM values. The Arduino timer for the given pin will be set to higher speed.

Parameters
pwmPinthe Arduino pwm pin for this fan. Not all PWM pins are supported.
minRPMthe speed in RPM at 0% power
maxRPMthe speed in RPM at 100% power

The documentation for this class was generated from the following files: