Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- psa=' OFF '
- psb=' ON1 '
- psc=' ON2 '
- mon = peripheral.wrap(b)
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write(psa)
- mon.setCursorPos(1,2)
- mon.write(psb)
- mon.setCursorPos(1,3)
- mon.write(psc)
- while true do
- event, side, x, y = os.pullEvent("monitor_touch")
- if x > 1 and x < 6 and y == 1 then
- rs.setBundledOutput("top",0)
- end
- if x > 1 and x < 6 and y == 2 then
- rs.setBundledOutput("top",colors.white)
- end
- if x > 1 and x < 6 and y == 3 then
- rs.setBundledOutput("top",colors.white+colors.orange)
- end
- os.sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment