gitpush
This commit is contained in:
parent
023d462455
commit
cae7992478
@ -37,7 +37,14 @@ sense.setPixels(sensehat.leds)
|
||||
|
||||
io.on('connection', (client) => {
|
||||
console.log(`client conncted: ${client.id}`)
|
||||
client.emit('message', `hello, ${client.id}`)
|
||||
client.emit('action', (action) => {
|
||||
if (action.name == 'clear') {
|
||||
sense.clear()
|
||||
sensehat.leds.forEach(led => {
|
||||
led = X
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// io.on('connection', (client) => {
|
||||
|
Loading…
Reference in New Issue
Block a user