Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("cable")
- moni = peripheral.wrap("top")
- function gets(side,color)
- if cable.getBundled(side,color) then
- return "AAN"
- else
- return "UIT"
- end
- end
- sides = "bottom"
- while (true) do
- moni.clear()
- moni.setCursorPos(1,1)
- moni.write("Lift: "..gets(sides,colors.white))
- moni.setCursorPos(1,2)
- moni.write("1ste deur: "..gets(sides,colors.orange))
- moni.setCursorPos(1,3)
- moni.write("Plafond: "..gets(sides,colors.yellow))
- moni.setCursorPos(1,4)
- moni.write("2de deur: "..gets(sides,colors.magenta))
- moni.setCursorPos(1,5)
- moni.write("Lichten lift: "..gets(sides,colors.lightBlue))
- moni.setCursorPos(1,6)
- moni.write("Lichten plafond: "..gets(sides,colors.lime))
- moni.setCursorPos(1,7)
- moni.write("Lichten gang: "..gets(sides,colors.pink))
- moni.setCursorPos(1,8)
- moni.write("Muziek: "..gets(sides,colors.gray))
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement