update
This commit is contained in:
parent
6deb1d9047
commit
7b86cf88b2
@ -68,10 +68,10 @@ io.on('connection', (client) => {
|
|||||||
case 'flash':
|
case 'flash':
|
||||||
if (color == undefined) color = [255, 255, 255]
|
if (color == undefined) color = [255, 255, 255]
|
||||||
sensehat.led.clear(color)
|
sensehat.led.clear(color)
|
||||||
client.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
sensehat.led.clear()
|
sensehat.led.clear()
|
||||||
client.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
||||||
}, delay | 200)
|
}, delay | 200)
|
||||||
break
|
break
|
||||||
// case 'getPixel':
|
// case 'getPixel':
|
||||||
|
Loading…
Reference in New Issue
Block a user