gitpush
This commit is contained in:
parent
cae7992478
commit
3a749f9ef4
@ -37,8 +37,9 @@ sense.setPixels(sensehat.leds)
|
||||
|
||||
io.on('connection', (client) => {
|
||||
console.log(`client conncted: ${client.id}`)
|
||||
client.emit('action', (action) => {
|
||||
client.on('action', (action) => {
|
||||
if (action.name == 'clear') {
|
||||
console.log('清屏幕')
|
||||
sense.clear()
|
||||
sensehat.leds.forEach(led => {
|
||||
led = X
|
||||
|
Loading…
Reference in New Issue
Block a user