This commit is contained in:
赵鑫 2022-09-05 14:28:30 +08:00
parent ef335e36c1
commit 4fcf068c51

View File

@ -107,7 +107,7 @@ io.on('connection', (client) => {
case 'turnLeft': case 'turnLeft':
var r = (Number(sensehat.led.rotation) + 90) % 360 var r = (Number(sensehat.led.rotation) + 90) % 360
sensehat.led.rotation = r sensehat.led.rotation = r
sensehat.led.setRotation() sensehat.led.setRotation(r)
// io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels }) // io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
break break
case 'turnRight': case 'turnRight':