gitpush
This commit is contained in:
parent
51be6724fe
commit
ec69df4c2e
@ -116,7 +116,6 @@ io.on('connection', (client) => {
|
|||||||
sensehat.led.flipV()
|
sensehat.led.flipV()
|
||||||
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
io.emit('action', { action: 'setPixels', pixels: sensehat.led.pixels })
|
||||||
break
|
break
|
||||||
|
|
||||||
case 'turnLeft':
|
case 'turnLeft':
|
||||||
var heading_angle = (Number(sensehat.led.rotation) + 90) % 360
|
var heading_angle = (Number(sensehat.led.rotation) + 90) % 360
|
||||||
sensehat.led.rotation = heading_angle
|
sensehat.led.rotation = heading_angle
|
||||||
|
Loading…
Reference in New Issue
Block a user