logi-fix.js aktualisiert
This commit is contained in:
parent
81a73ddc5d
commit
6d2f9d5fd9
@ -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 ){
|
||||
|
Loading…
Reference in New Issue
Block a user