Corsair Lighting Protocol
0.15.0
Control LEDs connected to an Arduino with iCUE
|
#include <ThermistorTemperatureController.h>
Public Member Functions | |
void | addSensor (uint8_t index, uint8_t pin) |
Public Member Functions inherited from TemperatureController | |
virtual void | handleTemperatureControl (const Command &command, const CorsairLightingProtocolResponse *response) override |
virtual uint16_t | getTemperature (uint8_t temperatureSensor) |
Protected Member Functions | |
virtual uint16_t | getTemperatureValue (uint8_t temperatureSensor) override |
virtual bool | isTemperatureSensorConnected (uint8_t temperatureSensor) override |
virtual uint16_t | getVoltageRail12V () override |
virtual uint16_t | getVoltageRail5V () override |
virtual uint16_t | getVoltageRail3V3 () override |
Protected Attributes | |
uint8_t | sensorPins [TEMPERATURE_NUM] = {0} |
This TemperatureController uses Thermistors and Resistors to messure the temperature. It does not implement the voltage rail measurements.
Thermistor Schematic:
| ---- [10k - Resistor] ---- | ---- [Thermistor] ---- | | | | [Ground] Analog Pin [+5v]
void ThermistorTemperatureController::addSensor | ( | uint8_t | index, |
uint8_t | pin | ||
) |
Add a Sensor to the TemperatureController using an Arduino analog pin connected as shown in {}. index the index of the sensorPins pin the Arduino analog pin
|
overrideprotectedvirtual |
Get the temperature of a sensor.
temperatureSensor | the index of the temperature sensor |
Implements TemperatureController.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Check if a temperature sensor is connected.
temperatureSensor | the index of the temperature sensor |
Implements TemperatureController.