Corsair_Virtuoso_XT_Headset.js aktualisiert
This commit is contained in:
parent
fca805c038
commit
2fe5989eae
@ -161,6 +161,7 @@ function SetSoftwareMode() {
|
|||||||
device.write([0x02, headsetMode, 0x02, 0x14, 0x00, 0x00], 64); // ?
|
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, 0x01, 0x03, 0x00, 0x02], 64); // Enable Software Mode
|
||||||
device.write([0x02, headsetMode, 0x0D, 0x00, 0x01], 64); //Open lighting endpoint
|
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%
|
device.write([0x02, headsetMode, 0x01, 0x02, 0x00, 0xe8, 0x03], 64); //Hardware Brightness 100%
|
||||||
|
|
||||||
|
|
||||||
@ -265,14 +266,7 @@ export function ImageUrl() {
|
|||||||
|
|
||||||
export function Shutdown() {
|
export function Shutdown() {
|
||||||
sendColor(true);
|
sendColor(true);
|
||||||
|
device.write([0x02, headsetMode, 0x01, 0x03, 0x00, 0x01], 64);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Validate(endpoint) {
|
export function Validate(endpoint) {
|
||||||
|
Loading…
Reference in New Issue
Block a user