added util timer functions, tweaks to flasher and some debug prints for #110

This commit is contained in:
Mikayla Fischler
2022-10-23 01:41:02 -04:00
parent d202a49011
commit 307bf6e2c8
4 changed files with 69 additions and 26 deletions

View File

@@ -42,17 +42,16 @@ local function callback_250ms()
end
end
-- start the flasher periodic
function flasher.init()
-- start/resume the flasher periodic
function flasher.run()
active = true
callback_counter = 0
registry = { {}, {}, {} }
callback_250ms()
end
-- clear all blinking indicators and stop the flasher periodic
function flasher.clear()
active = false
callback_counter = 0
registry = { {}, {}, {} }
end