Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --On button:
- rednet.open("right")
- m = peripheral.wrap("left")
- m.setBackgroundColor(colors.lime)
- m.clear()
- m.setCursorPos(3,2)
- m.write("On")
- while true do
- event, left, x, y = os.pullEvent("monitor_touch")
- if
- x and y then
- rednet.send(1, "on")
- shell.run("off")
- else
- print("lol")
- shell.run("off")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment