diff --git a/modules/evout.lua b/modules/evout.lua index 441b009..225b3c0 100644 --- a/modules/evout.lua +++ b/modules/evout.lua @@ -1,7 +1,9 @@ s("evp",function() - local evs={l()} - if evs ~= nil then - ns(T.unpack(evs)) + while true do + if ev ~= nil and ev[1] ~= "display" and ev[1] ~= "key_down" and ev[1] ~= "key_up" and ev[1] ~= "screen_resized" and ev[1] ~= "modem_message" and ev[1] ~= "sendmsg" then +-- ns(T.unpack(evs)) + print(T.unpack(ev)) end C.yield() + end end) diff --git a/modules/util/loadeeprom.lua b/modules/util/loadeeprom.lua new file mode 100644 index 0000000..4663d2f --- /dev/null +++ b/modules/util/loadeeprom.lua @@ -0,0 +1 @@ +pcall(load(component.invoke(component.list("eeprom")(),"getData")))