Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s

This commit is contained in:
Public Source Publisher committed 2026-09-30 00:26:45 +00:00
1 parent 91f8b3e3c1
commit def7920856
2271 files changed
+501225 -501178

No files matched your search

@@ -1,32 +1,32 @@
/*---------------------------------------------------------*\
| MNTKeyboardController.cpp |
| |
| Driver for the MNT Reform keyboards |
| |
| Christian Heller <c.heller@plomlompom.de> 7 Aug 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "MNTKeyboardController.h"
MNTKeyboardController::~MNTKeyboardController()
{
hid_close(dev);
}
void MNTKeyboardController::SendColorMatrix(unsigned char *color_map)
{
unsigned char row_size = kbd_cols * KBD_COLOR_SIZE;
unsigned char cmdbuf_size = CMD_OFFSET + row_size;
unsigned char *usb_buf = new unsigned char[cmdbuf_size];
memcpy(usb_buf, CMD_PREFIX, CMD_PREFIX_LEN);
for(unsigned int row_idx = 0; row_idx < KBD_ROWS; row_idx++)
{
usb_buf[CMD_PREFIX_LEN] = row_idx;
memcpy(usb_buf + CMD_OFFSET, color_map + row_idx * row_size, row_size);
hid_write(dev, usb_buf, cmdbuf_size);
}
delete[] usb_buf;
}
/*---------------------------------------------------------*\
| MNTKeyboardController.cpp |
| |
| Driver for the MNT Reform keyboards |
| |
| Christian Heller <c.heller@plomlompom.de> 7 Aug 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "MNTKeyboardController.h"
MNTKeyboardController::~MNTKeyboardController()
{
hid_close(dev);
}
void MNTKeyboardController::SendColorMatrix(unsigned char *color_map)
{
unsigned char row_size = kbd_cols * KBD_COLOR_SIZE;
unsigned char cmdbuf_size = CMD_OFFSET + row_size;
unsigned char *usb_buf = new unsigned char[cmdbuf_size];
memcpy(usb_buf, CMD_PREFIX, CMD_PREFIX_LEN);
for(unsigned int row_idx = 0; row_idx < KBD_ROWS; row_idx++)
{
usb_buf[CMD_PREFIX_LEN] = row_idx;
memcpy(usb_buf + CMD_OFFSET, color_map + row_idx * row_size, row_size);
hid_write(dev, usb_buf, cmdbuf_size);
}
delete[] usb_buf;
}