You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
299 B
JavaScript
21 lines
299 B
JavaScript
11 months ago
|
const { lights } = require("./config.js");
|
||
|
|
||
|
let latest_color = [];
|
||
|
|
||
|
// initialize
|
||
|
for (let i in lights) {
|
||
|
for (let j = 1; j <= 3; j++) {
|
||
|
latest_color.push(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
get: () => {
|
||
|
return latest_color;
|
||
|
},
|
||
|
|
||
|
set: (new_color) => {
|
||
|
latest_color = new_color;
|
||
|
},
|
||
|
};
|