Commencé à travailler sur les tests deep sleep avec le NodeMCU ESP-M3

This commit is contained in:
Christian Zufferey
2018-12-08 18:28:13 +01:00
parent 8455390247
commit 8eaa3579c2
28 changed files with 703 additions and 0 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()