- repris le projet btn_led_remote dans le workshop, ne fonctionne pas encore

This commit is contained in:
Christian Zufferey
2018-10-11 18:26:51 +02:00
parent 73392c7b8b
commit 55a2037088
44 changed files with 145 additions and 38 deletions
+15
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()