From 1ef9ec4e45ce169c5401108794e1a4f198cec792 Mon Sep 17 00:00:00 2001 From: Zhao Xin <7176466@qq.com> Date: Thu, 1 Sep 2022 13:40:43 +0800 Subject: [PATCH] update --- sensehat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/sensehat.js b/sensehat.js index 2622b74..181d037 100644 --- a/sensehat.js +++ b/sensehat.js @@ -19,6 +19,7 @@ const leds = [ [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], ] + io.on('connection', (client) => { client.on('action', ({ action, x, y }) => { console.log({ action, x, y })