Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon -- Monitor
- local ticket -- Ticketmachiene
- local i
- local j
- local p
- ---------------------------------------------
- -- peripheral wrap
- ---------------------------------------------
- local names = peripheral.getNames()
- for i,j in pairs(names) do
- p = peripheral.getType(j)
- if p == "monitor" then
- mon = peripheral.wrap(j)
- e = peripheral.getMethods(j)
- for c,d in pairs(e) do
- print(d)
- end
- end
- if p == "openperipheral_ticketmachine" then
- ticket = peripheral.wrap(j)
- t=peripheral.getMethods(j)
- for a,b in pairs(t) do
- --print (b)
- end
- end
- end
- ----------------------------------------------
- w=mon.getSize()
- print(w)
- mon.clear()
- mon.setCursorPos(14,10)
- mon.write("monitor Size = 50 X 19")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement