This commit is contained in:
赵鑫 2022-09-12 15:54:28 +08:00
parent 51be6724fe
commit ec69df4c2e

View File

@ -116,7 +116,6 @@ io.on('connection', (client) => {
sensehat.led.flipV()
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
break
case 'turnLeft':
var heading_angle = (Number(sensehat.led.rotation) + 90) % 360
sensehat.led.rotation = heading_angle