Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("right")
- monitor.setBackgroundColor(colors.lime)
- monitor.write("[ Knap ]")
- local x, y = os.pullEvent("touch_monitor")
- if x == 1 and y >= 1 and y <= 8 then
- rs.setOutput("left", true")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement