This commit is contained in:
赵鑫 2022-09-01 13:47:00 +08:00
parent 1ef9ec4e45
commit 7cd5b48909

View File

@ -43,6 +43,9 @@ io.on('connection', (client) => {
case 'clear':
sense.clear()
break
case 'temp':
read_all_leds()
break
default:
break
}
@ -55,4 +58,5 @@ function read_led(x, y) {
function read_all_leds() {
const a = sense.getPixels()
console.table(a)
}