update
This commit is contained in:
parent
8869e44147
commit
866d8c55e1
@ -132,6 +132,11 @@ io.on('connection', (client) => {
|
|||||||
sensehat.led.showMessage(text, speed, color, background)
|
sensehat.led.showMessage(text, speed, color, background)
|
||||||
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
||||||
break
|
break
|
||||||
|
case 'flashMessage':
|
||||||
|
if (color == undefined) color = [255, 255, 255]
|
||||||
|
sensehat.led.flashMessage(text, speed, color, background)
|
||||||
|
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user