This commit is contained in:
赵鑫 2022-09-05 15:06:39 +08:00
parent f3d893c230
commit 53f593d13e

View File

@ -146,6 +146,7 @@
client.on('action', ({ action, x, y, color, pixels }) => {
var leds = document.querySelectorAll('.led')
if (color == undefined) color = [0, 0, 0]
var [r, g, b] = color
switch (action) {
case 'clear':