This commit is contained in:
赵鑫 2022-09-04 15:54:17 +08:00
parent 15c0cae67c
commit d98d692d09

View File

@ -10,6 +10,10 @@ const app = express()
const server = app.listen(port, host, () => console.log(`rpi sense hat server is running at port http://${host}:${port}`))
const io = socketio(server)
app.get('/', (req, res) => {
res.sendStatus('ok', 200)
})
// Sense HAT 初始化
sense.lowLight = true
sense.setRotation(180)