From 34c11ec7a95c95bc5a07afcff5da116274ae4f0c Mon Sep 17 00:00:00 2001 From: Zhao Xin <7176466@qq.com> Date: Thu, 1 Sep 2022 08:33:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sensehat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensehat.js b/sensehat.js index 9f9691d..32fc305 100644 --- a/sensehat.js +++ b/sensehat.js @@ -4,7 +4,7 @@ const sense = require('sense-hat-led').sync const app = express() const server = app.listen(3000, '0.0.0.0', () => console.log('server is running')) const io = socketio(server) -app.use(express.static('public')) +app.use('/sensehat/', express.static('public')) sense.setRotation(180) sense.lowLight = true flash()