Added Effects for Clevo Lightbar

This commit is contained in:
Kyle Cascade authored and Adam Honse committed 2026-01-21 16:55:46 -06:00
1 parent e48908573a
commit 4855628d7a
6 files changed
+150 -17

No files matched your search

@@ -17,6 +17,7 @@ ClevoKeyboardController::ClevoKeyboardController(hid_device* dev_handle, const h
{
dev = dev_handle;
location = info.path;
version = info.release_number;
}
ClevoKeyboardController::~ClevoKeyboardController()
@@ -45,6 +46,13 @@ std::string ClevoKeyboardController::GetSerialString()
return(return_string);
}
std::string ClevoKeyboardController::GetFirmwareVersion()
{
char version_string[16];
snprintf(version_string, sizeof(version_string), "%d.%02d", version >> 8, version & 0xFF);
return(version_string);
}
void ClevoKeyboardController::WriteControl(unsigned char* data)
{
hid_send_feature_report(dev, data, CLEVO_KEYBOARD_REPORT_SIZE);