Set Asus USB motherboard to use Gen 1

This commit is contained in:
Barry H
2025-09-18 21:28:52 +08:00
committed by Adam Honse
parent 679b790687
commit 1b01bbb7fc
2 changed files with 28 additions and 0 deletions

View File

@@ -41,12 +41,38 @@ AuraMainboardController::AuraMainboardController(hid_device* dev_handle, const c
device_info.push_back({effect_channel, (unsigned char)i, 0x01, 0, AuraDeviceType::ADDRESSABLE});
effect_channel++;
}
SetGen1();
}
AuraMainboardController::~AuraMainboardController()
{
}
void AuraMainboardController::SetGen1()
{
unsigned char usb_buf[65];
/*-----------------------------------------------------*\
| Zero out buffer |
\*-----------------------------------------------------*/
memset(usb_buf, 0x00, sizeof(usb_buf));
/*-----------------------------------------------------*\
| Set up custom command packet |
\*-----------------------------------------------------*/
usb_buf[0x00] = 0xEC;
usb_buf[0x01] = 0x52;
usb_buf[0x02] = 0x53;
usb_buf[0x03] = 0x00;
usb_buf[0x04] = 0x01;
/*-----------------------------------------------------*\
| Send packet |
\*-----------------------------------------------------*/
hid_write(dev, usb_buf, 65);
}
void AuraMainboardController::SetChannelLEDs(unsigned char channel, RGBColor * colors, unsigned int num_colors)
{
SendDirect

View File

@@ -77,4 +77,6 @@ private:
unsigned char* led_data,
bool shutdown_effect
);
void SetGen1();
};