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