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

Public Member Functions

 CLPUSBSerialBridge ()
 
 CLPUSBSerialBridge (const char *serialNumber)
 
virtual void begin ()
 
virtual void handleHID ()
 

Constructor & Destructor Documentation

◆ CLPUSBSerialBridge() [1/2]

CLPUSBSerialBridge::CLPUSBSerialBridge ( )
inline

Create a new CLPUSBSerialBridge with the default Serial Number.

◆ CLPUSBSerialBridge() [2/2]

CLPUSBSerialBridge::CLPUSBSerialBridge ( const char *  serialNumber)

Create a new CLPUSBSerialBridge and set a Serial Number.

Parameters
serialNumberthe Serial Number of the USB device

Member Function Documentation

◆ begin()

void CLPUSBSerialBridge::begin ( )
virtual

Setup the bridge connections. Must be called in the Arduino setup function.

◆ handleHID()

void CLPUSBSerialBridge::handleHID ( )
virtual

Reads data from USB and sents it via Serial to the main MCU. Wait for the response and set it back to the USB host. MUST be called in the Arduino loop function.


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