Corsair_Virtuoso_XT_Headset.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-19 23:33:22 +02:00
parent fca805c038
commit 2fe5989eae

View File

@ -161,6 +161,7 @@ function SetSoftwareMode() {
device.write([0x02, headsetMode, 0x02, 0x14, 0x00, 0x00], 64); // ?
device.write([0x02, headsetMode, 0x01, 0x03, 0x00, 0x02], 64); // Enable Software Mode
device.write([0x02, headsetMode, 0x0D, 0x00, 0x01], 64); //Open lighting endpoint
device.pause(100);
device.write([0x02, headsetMode, 0x01, 0x02, 0x00, 0xe8, 0x03], 64); //Hardware Brightness 100%
@ -265,14 +266,7 @@ export function ImageUrl() {
export function Shutdown() {
sendColor(true);
const packet = new Array(64).fill(0x00);
packet[0] = 0x02;
packet[1] = headsetMode;
packet[2] = 0x01;
packet[3] = 0x03;
packet[5] = 0x01;
device.write(packet, 64);
device.write([0x02, headsetMode, 0x01, 0x03, 0x00, 0x01], 64);
}
export function Validate(endpoint) {