Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --os.loadAPI("rom/jjperipherals/groups")
- print(os.loadAPI("potato"))
- local pr = peripheral.wrap("peripheral_relay_18")
- print(textutils.serialise(pr.getAttachedMethods()))
- pList = peripheral.getNames()
- print(textutils.serialise(pList))
- for i=0, 224 do -- Keep this for row and column calculation
- rowNum = math.floor(i/15 + 1)
- columnNum = i+1-15*(rowNum-1)
- print(tostring(i)..": "..tostring(rowNum)..", "..tostring(columnNum))
- end
- potato.init()
- pr.setName("James the Cat")
- pr = potato.wrapByName("James the Cat")
- print(pr.getAttachedMethods())
Advertisement
Add Comment
Please, Sign In to add comment