Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome to the Main-Menu")
- print("Please choose an option below")
- print("ĺ82ĽA9 by Liquidicity")
- function getMonitorPos()
- loc = {[0]="top", [1]="bottom", [2]="left", [3]="right", [4]="back"}
- for i=0,4 do
- if peripheral.isPresent(loc[i]) == true then
- if peripheral.getType(loc[i]) == "monitor" then
- -- print("Monitor found at "..loc[i])
- monitor = loc[i]
- return monitor
- -- break
- end
- end
- end
- end
- loc = getMonitorPos()
- --print("loc:"..loc)
- if loc == nil then
- print("Monitor not found")
- else
- mon = peripheral.wrap(loc)
- mon.write("Monitor Test")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement