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