This commit is contained in:
赵鑫 2022-09-05 11:44:41 +08:00
parent 1a2d5c4e65
commit efd83b456f

View File

@ -63,7 +63,7 @@ io.on('connection', (client) => {
case 'clear':
if (color == undefined) color = [0, 0, 0]
sensehat.led.clear(color)
client.emit('action', { action: 'clear', color })
io.emit('action', { action: 'setPixels', pixels })
break
// case 'flash':
// if (color == undefined) color = [255, 255, 255]