This commit is contained in:
赵鑫 2022-09-05 12:24:37 +08:00
parent 54841256a8
commit f195d34363

View File

@ -78,7 +78,7 @@ io.on('connection', (client) => {
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':
// color = sensehat.led.getPixel(x, y) // color = sensehat.led.getPixel(x, y)