Advertisement
Plazter

123

Jun 18th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. local monitor = peripheral.wrap("right")
  2. monitor.setBackgroundColor(colors.lime)
  3. monitor.write("[ Knap ]")
  4.  
  5. local x, y = os.pullEvent("touch_monitor")
  6.  
  7. if x == 1 and y >= 1 and y <= 8 then
  8. rs.setOutput("left", true")
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement