spimaster = spi.master(spi.HSPI, {sclk = 18, mosi = 23, miso = 19}) -- HSPI (LCD/TF Card) function tryfile(f) if file.exists(f) then s,err=pcall(function() dofile(f) end) if not s then print(err) end else print('ERR: "'..f..'" does not exist...') end end tryfile('display.lua') tryfile('wifi.lua') function reload() tryfile('init.lua') end function ls() for k,v in pairs(file.list()) do print(k.."\t\tsize: "..v) end end function rpt_iter(f) return function () return f() end end function cat(f) if file.open(f) then local f = file.read() while f do print(f) f = file.read() end file.close() end end function help() print("heh") end