update
This commit is contained in:
parent
1a2d5c4e65
commit
efd83b456f
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user