Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("front")
- mon.clear()
- mon.setTextScale(2)
- mon.setCursorPos(2,2)
- mon.write("Welcome to GhostOS")
- mon.setCursorPos(5,7)
- mon.write("Reaktor =")
- mon.setCursorPos(5,14)
- mon.write("Yellorium Iput =")
- while true do
- event,side,x,y=os.pullEvent("monitor_touch")
- if x > 3 and x < 24 and y == 7 and rs.getOutput("back") == false then
- rs.setOutput("back",true)
- mon.setCursorPos(5,7)
- mon.clearLine()
- mon.blit("Reaktor = ON","000000000000","dddddddddddd")
- elseif x > 3 and x < 24 and y == 7 and rs.getOutput("back") == true then
- rs.setOutput("back",false)
- mon.setCursorPos(5,7)
- mon.clearLine()
- mon.blit("Reaktor = OFF","0000000000000","eeeeeeeeeeeee")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement