Advertisement
PeKlim

check peripherals

Apr 5th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. soubor = fs.open("periferie.log", "a")
  2. soubor.writeLine("----------")
  3. seznam = peripheral.getNames()
  4. for i=1,#seznam do
  5.    soubor.writeLine(seznam[i])
  6.    soubor.writeLine(peripheral.getType(seznam[i]))
  7.    for a,b in ipairs(peripheral.getMethods(seznam[i])) do
  8.       soubor.writeLine(a..". "..b)
  9.    end
  10. end
  11. soubor.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement