mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-06 07:08:13 -05:00
Set Asus USB motherboard to use Gen 1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -77,4 +77,6 @@ private:
|
||||
unsigned char* led_data,
|
||||
bool shutdown_effect
|
||||
);
|
||||
|
||||
void SetGen1();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user