update
This commit is contained in:
parent
7cc61365be
commit
b37e3c32ab
@ -77,7 +77,8 @@ io.on('connection', (client) => {
|
||||
break
|
||||
case 'setPixel':
|
||||
if (color == undefined) color = [255, 255, 255]
|
||||
sensehat.led.setPixel(Number(x), Number(y), color)
|
||||
x = Number(x), y = Number(y)
|
||||
sensehat.led.setPixel(x, y, color)
|
||||
io.emit('action', { action: 'setPixel', x, y, color })
|
||||
break
|
||||
// case 'getPixel':
|
||||
|
Loading…
Reference in New Issue
Block a user