diff --git a/lights.js b/lights.js index 78990a2..6295e08 100644 --- a/lights.js +++ b/lights.js @@ -37,7 +37,7 @@ export function set_pattern(pat) { pattern = pat; } -let functions = { +export const functions = { random: (index, args, prev) => { return Math.floor(Math.random() * 256) }, constant: (index, args, prev) => { return args; }, modulo: (index, args, prev) => { return prev % args; }, @@ -47,8 +47,6 @@ let functions = { subtract: (index, args, prev) => { return prev - args; } } -export const functions; - function tick_pattern() { // do the parsing stuff here log.debug("TICKING PATTERN")