Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- m = peripheral.wrap("back")
- m.setTextScale(3)
- term.setTextColor(4)
- term.setBackgroundColor(64)
- term.setCursorPos(3,3)
- print ("Ein")
- term.setBackgroundColor(64)
- term.setCursorPos(4,3)
- print("Aus")
- term.setBackgroundColor(64)
- while true do
- event,side,x,y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 3 and y == 3 then
- redstone.setOutput("left", true)
- end
- end
- end
- while true do
- event,side,x,y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 4 and y == 3 then
- redstone.setOutput("left", false )
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement