logi-fix.js aktualisiert
This commit is contained in:
parent
cb13f25872
commit
4288a0456b
@ -109,7 +109,7 @@ function sendColors(overrideColor) {
|
|||||||
while(RGBDataExtra.length > 0) {
|
while(RGBDataExtra.length > 0) {
|
||||||
const ledsToSend = Math.min(4, RGBDataExtra.length/4);
|
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.write(packet, 20);
|
||||||
device.pause(1);
|
device.pause(1);
|
||||||
console.log(RGBDataExtra);
|
console.log(RGBDataExtra);
|
||||||
|
Loading…
Reference in New Issue
Block a user