This commit is contained in:
赵鑫 2022-09-05 14:47:08 +08:00
parent 6ec7b80b3e
commit c02b42fae3

View File

@ -125,7 +125,8 @@ io.on('connection', (client) => {
}
break
case 'showLetter':
sensehat.led.showLetter(character)
if (color == undefined) color = [255, 255, 255]
sensehat.led.showLetter(character, color, backcolor)
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
break
default: