Files
control/lua/init.lua
2021-07-24 00:59:25 -05:00

13 lines
359 B
Lua

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 ls() print(sjson.encode(file.list())) end