ROG Strix G15 Front and Side leds activation/deactivation (capture included)
It would be great to be able to deactivate only front and side leds on keyboards allowing it.
I'll try to add something myself if I find the time to dive into the code.
For the record, here is a capture of activation/deactivation (via ArmouryCrate under windows) of front and side leds activation/deactivation on ROG Strix G15 (G513QM) :
Activation
0000 1c 00 20 da b9 ac 83 9a ff ff 00 00 00 00 1b 00 .. .............
0010 00 02 00 02 00 00 02 48 00 00 00 00 21 09 5d 02 .......H....!.].
0020 00 00 40 00 5d bd 01 0c 05 02 00 00 00 00 00 00 ..@.]...........
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0060 00 00 00 00 ....
Deactivation
0000 1c 00 20 1a e5 ad 83 9a ff ff 00 00 00 00 1b 00 .. .............
0010 00 02 00 02 00 00 02 48 00 00 00 00 21 09 5d 02 .......H....!.].
0020 00 00 40 00 5d bd 01 08 00 02 00 00 00 00 00 00 ..@.]...........
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0060 00 00 00 00 ....
I extracted the significant parts as constants on the model of what is already present in usb.rs :
pub const SIDE_FRONT_LED_SWITCH_ON: [u8; 17] = [
0x5d, 0xbd, 0x01, 0x0c, 0x05, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
];
pub const SIDE_FRONT_LED_SWITCH_OFF: [u8; 17] = [
0x5d, 0xbd, 0x01, 0x08, 0x00, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
];