Corsair Lighting Protocol
0.15.0
Control LEDs connected to an Arduino with iCUE
|
#include <CorsairLightingProtocolController.h>
Public Member Functions | |
CorsairLightingProtocolController (ILEDController *l, CorsairLightingFirmware *c) | |
CorsairLightingProtocolController (ILEDController *l, ITemperatureController *t, IFanController *f, CorsairLightingFirmware *c) | |
void | handleCommand (const Command &command, CorsairLightingProtocolResponse *response) |
CorsairLightingFirmware * | getFirmware (void) |
The central Controller which integrates all components. The main components of the CorsairLightingProtocolController are the CorsairLightingFirmware and the LEDController. There can also be an optional TemperatureController and FanController which are required if the device should be an Commander PRO.
CorsairLightingProtocolController::CorsairLightingProtocolController | ( | ILEDController * | l, |
CorsairLightingFirmware * | c | ||
) |
The constructor used to create a Lighting only device.
l | The LEDController which should be used to control the LEDs of the created Lighting Node PRO |
c | The CorsairLightingFirmware used to handle Firmware related commands |
CorsairLightingProtocolController::CorsairLightingProtocolController | ( | ILEDController * | l, |
ITemperatureController * | t, | ||
IFanController * | f, | ||
CorsairLightingFirmware * | c | ||
) |
The constructor used to create a device with lighting, temperature and fan controller functionality (Commander PRO).
l | The LEDController which should be used to control the LEDs of the created Commander PRO |
t | The TemperatureController which used to messure the temperature of the created Commander PRO |
f | The FanController used to control the fans of the created Commander PRO |
c | The CorsairLightingFirmware used to handle Firmware related commands |
void CorsairLightingProtocolController::handleCommand | ( | const Command & | command, |
CorsairLightingProtocolResponse * | response | ||
) |
The only public function of the CorsairLightingProtocolController. It must be called to process a command which was received from iCUE. This function is normally called by CorsairLightingProtocolHID and CorsairLightingProtocolSerial adapters.
command | The command received from iCUE |
response | The response callback which can be called to response to the command |