This commit is contained in:
赵鑫 2022-09-05 12:25:57 +08:00
parent f195d34363
commit ab2601e6e2

View File

@ -77,7 +77,7 @@ io.on('connection', (client) => {
break break
case 'setPixel': case 'setPixel':
if (color == undefined) color = [255, 255, 255] if (color == undefined) color = [255, 255, 255]
sensehat.led.setPixel(x, y, [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 break
// case 'getPixel': // case 'getPixel':