logi-fix.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-05 23:51:12 +02:00
parent 81a73ddc5d
commit 6d2f9d5fd9

View File

@ -122,8 +122,8 @@ function sendColors(overrideColor) {
while(RGBData.length > 0) {
counter += 1
const ledsToSend = Math.min(4, RGBDataExtra.length/4);
packet = [0x12, 0xFF, 0x0C, 0x3E, 0x00, 0x01, 0x00, ledsToSend].concat(RGBData.splice(0, ledsToSend*4));
//packet = [0x11, 0xFF, 0x10, 0x1F].concat(RGBDataExtra.splice(0, ledsToSend*4));
//packet = [0x12, 0xFF, 0x0C, 0x3E, 0x00, 0x01, 0x00, ledsToSend].concat(RGBData.splice(0, ledsToSend*4));
packet = [0x11, 0xFF, 0x10, 0x1F].concat(RGBDataExtra.splice(0, ledsToSend*4));
device.write(packet, 20);
device.pause(1);
if ( counter == 3 ){