Advertisement
maxtorcd55

test

Apr 20th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. os.loadAPI("cable")
  2.  
  3. moni = peripheral.wrap("top")
  4.  
  5. function gets(side,color)
  6.     if cable.getBundled(side,color) then
  7.         return "AAN"
  8.     else
  9.         return "UIT"
  10.     end
  11. end
  12.  
  13. sides = "bottom"
  14.  
  15.  
  16. while (true) do
  17.     moni.clear()
  18.     moni.setCursorPos(1,1)
  19.     moni.write("Lift: "..gets(sides,colors.white))
  20.     moni.setCursorPos(1,2)
  21.     moni.write("1ste deur: "..gets(sides,colors.orange))
  22.     moni.setCursorPos(1,3)
  23.     moni.write("Plafond: "..gets(sides,colors.yellow))
  24.     moni.setCursorPos(1,4)
  25.     moni.write("2de deur: "..gets(sides,colors.magenta))
  26.     moni.setCursorPos(1,5)
  27.     moni.write("Lichten lift: "..gets(sides,colors.lightBlue))
  28.     moni.setCursorPos(1,6)
  29.     moni.write("Lichten plafond: "..gets(sides,colors.lime))
  30.     moni.setCursorPos(1,7)
  31.     moni.write("Lichten gang: "..gets(sides,colors.pink))
  32.     moni.setCursorPos(1,8)
  33.     moni.write("Muziek: "..gets(sides,colors.gray))
  34.     sleep(1)
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement