Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Running my dick")
- os.loadAPI("touchpoint")
- mon = peripheral.wrap("top")
- mon.clear()
- local t = touchpoint.new("top")
- function pulseRedstone(side, buttonName)
- redstone.setOutput(side,true)
- t:toggleButton(buttonName)
- sleep(1)
- redstone.setOutput(side,false)
- t:toggleButton(buttonName)
- end
- t:add("Device1", function() pulseRedstone("left","Device1") end, 2, 2, 14, 11, colors.red, colors.lime)
- t:add("Device2", function() pulseRedstone("right","Device2") end, 16, 2, 28, 11, colors.red, colors.lime)
- t:draw()
- t:run()
- --while true do
- -- local event, p1 = t:handleEvents(os.pullEvent())
- -- if event == "button_click" then
- -- t:toggleButton(p1)
- -- rs.setOutput(p1, not rs.getOutput(p1))
- -- end
- --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement