Saataa andagii !
This commit is contained in:
parent
934e97a709
commit
7a9860a3bb
2 changed files with 44 additions and 3 deletions
9
main.lua
9
main.lua
|
@ -66,6 +66,15 @@ function avg(tab)
|
|||
return sum / #tab
|
||||
end
|
||||
|
||||
function split(text, splitter)
|
||||
local start, _end = text:find(splitter)
|
||||
if not start then
|
||||
return text, ""
|
||||
end
|
||||
return text:sub(1, start - 1), text:sub(_end + 1)
|
||||
end
|
||||
|
||||
|
||||
-- charge tout nos fichiers lua
|
||||
dofile("leds.lua")
|
||||
dofile("buzz.lua")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue