Advertisement
Guest User

start

a guest
Dec 17th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. print("Starting..")
  2. os.loadAPI("touchpoint")
  3. local t = touchpoint.new("right")
  4.  
  5. t:add("right", nil, 2,2,14,11,colors.red, colors.lime)
  6.  
  7. t:draw()
  8.  
  9. while true do
  10. local event p1 = t:handleEvents(os.pullEvent())
  11.   if event == "button_click" then
  12.       t:toggleButton(p1)
  13.       rs.setOutput(p1, not rs.getOutput(p1))
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement