Advertisement
jared314

EXIT Button

Aug 11th, 2014
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. while true do
  2. m = peripheral.wrap("top")
  3. m.clear()
  4.  
  5. m.setCursorPos(1,1)
  6. m.setTextScale(1)
  7. m.write("button")
  8.  
  9. event,side,x,y = os.pullEvent()
  10.  
  11. if event == "monitor_touch" then
  12. rednet.open('back')
  13. rednet.broadcast('1')
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement