forked from GitYVR/bepsi-pi
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
20 lines (17 loc) · 714 Bytes
/
index.js
File metadata and controls
20 lines (17 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const { createExitAwareAbortController } = require("./src/common");
const { p } = require("./src/machine")
const { setupButtons } = require("./src/listeners/buttonL");
const { startButtonListener } = require("./src/listeners/buttonL");
const { checkTrays } = require("./src/listeners/buttonL");
const { startLightningListener } = require("./src/listeners/lightningL");
const productionLabel = ["Machine is in TESTING mode", "Machine is running in PRODUCTION"]
const main = async () => {
console.log(`Starting 21UP`);
console.log(productionLabel[p]);
const abortController = createExitAwareAbortController();
setupButtons();
startButtonListener();
checkTrays();
startLightningListener();
};
main();