logi-fix.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-06 00:26:12 +02:00
parent ada8f9e3ee
commit b7c0c74494

View File

@ -121,21 +121,21 @@ function sendColors(overrideColor) {
while(RGBDataExtra.length > 0) {
const ledsToSend = Math.min(4, RGBDataExtra.length/4);
packet = [0x11, 0xFF, 0x10, 0x1F].concat(RGBDataExtra.splice(0, ledsToSend*4));
packet = [0x11, 0xFF, 0x10, 0x1A].concat(RGBDataExtra.splice(0, ledsToSend*4));
device.write(packet, 20);
device.pause(1);
}
packet = [ 0x11, 0xff, 0x10, 0x1a, 0x54, 0x00, 0xec, 0xec, 0x59, 0x00, 0x80, 0x80, 0x5a, 0x00, 0xd9, 0xd9, 0x5b, 0x00, 0xa5, 0xa5 ];
device.write(packet, 20);
device.pause(1);
packet = [ 0x11, 0xff, 0x10, 0x1a, 0x0d, 0x00, 0xb2, 0xb2, 0x0e, 0x00, 0x4b, 0x4b, 0x10, 0x00, 0x77, 0x77, 0x19, 0x00, 0xe5, 0xe5 ];
device.write(packet, 20);
device.pause(1);
packet = [ 0x11, 0xff, 0x10, 0x1a, 0xb7, 0xb7, 0x00, 0x4c, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];
device.write(packet, 20);
device.pause(1);
// packet = [ 0x11, 0xff, 0x10, 0x1a, 0x54, 0x00, 0xec, 0xec, 0x59, 0x00, 0x80, 0x80, 0x5a, 0x00, 0xd9, 0xd9, 0x5b, 0x00, 0xa5, 0xa5 ];
// device.write(packet, 20);
// device.pause(1);
// packet = [ 0x11, 0xff, 0x10, 0x1a, 0x0d, 0x00, 0xb2, 0xb2, 0x0e, 0x00, 0x4b, 0x4b, 0x10, 0x00, 0x77, 0x77, 0x19, 0x00, 0xe5, 0xe5 ];
// device.write(packet, 20);
// device.pause(1);
// packet = [ 0x11, 0xff, 0x10, 0x1a, 0xb7, 0xb7, 0x00, 0x4c, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];
// device.write(packet, 20);
// device.pause(1);
applyExtra();