- testé le mode deep sleep avec dsleep.lua

- fait un petit ping avec ping.lua pour tester si une machine est présente
This commit is contained in:
Christian Zufferey
2018-11-13 20:44:42 +01:00
parent 1d839f8aaa
commit 3bfc2949d2
19 changed files with 377 additions and 8 deletions

View File

@@ -0,0 +1,15 @@
-- fonction dir() pour afficher les fichiers dans la flash
print("\n dir.lua zf180826.1019 \n")
function dir()
print("\n-------------------------------")
l=file.list() i=0
for k,v in pairs(l) do
i=i+v
print(k..string.rep(" ",19-string.len(k)).." : "..v.." bytes")
end
print("-------------------------------")
print('\nUsed: '..i..' bytes\nusage: dofile("file.lua")\n')
end
dir()