#include <CorsairLightingProtocolHID.h>
|
bool | available () const |
|
void | getCommand (Command &command) |
|
void | sendX (const uint8_t *data, const size_t x) const override |
|
The HID Adapter for CorsairLightingProtocolController. This adapter uses the USB HID interface directly to mimic a corsair device. This adapter can only be used when the USB interface is accessable by the sketch.
◆ CorsairLightingProtocolHID() [1/2]
◆ CorsairLightingProtocolHID() [2/2]
Create a new adapter for using the given Serial Number for the usb interface.
- Parameters
-
◆ sendX()
void CorsairLightingProtocolHID::sendX |
( |
const uint8_t * |
data, |
|
|
const size_t |
x |
|
) |
| const |
|
overrideprotectedvirtual |
Send some bytes data via the CorsairLightingProtocol.
- Parameters
-
data | the array with the data |
x | the length of the array which should be send. |
Implements CorsairLightingProtocolResponse.
◆ update()
void CorsairLightingProtocolHID::update |
( |
| ) |
|
Read commands form HID interface and pass them to the contoller. This function must be called in loop.
The documentation for this class was generated from the following files: