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': case 'clear':
if (color == undefined) color = [0, 0, 0] if (color == undefined) color = [0, 0, 0]
sensehat.led.clear(color) sensehat.led.clear(color)
client.emit('action', { action: 'clear', color }) io.emit('action', { action: 'setPixels', pixels })
break break
// case 'flash': // case 'flash':
// if (color == undefined) color = [255, 255, 255] // if (color == undefined) color = [255, 255, 255]