Commencé à travailler sur le plugin NodeMCU pour Atom, mais j'ai des problèmes de 'delay' avec l'utilitaire luatool.py encore à régler, il va trop vite entre les commandes envoyées
This commit is contained in:
26
IDE_remote/SocketIDE/test1/toto.lua
Normal file
26
IDE_remote/SocketIDE/test1/toto.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
print("c'est toto")
|
||||
|
||||
--l = file.list();for k,v in pairs(l) do print('name:'..k..', size:'..v)end
|
||||
|
||||
function dir2()
|
||||
l = file.list();for k,v in pairs(l) do print('name:'..k..', size:'..v)end
|
||||
end
|
||||
|
||||
|
||||
|
||||
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()
|
||||
dir2()
|
||||
|
||||
]]
|
||||
Reference in New Issue
Block a user