Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Fstuhl v0.1
- --PC ID VOM SERVER
- PCIDSER=0
- -- U I
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.red)
- term.clear()
- term.setCursorPos(1,1)
- print(" # ")
- print(" ### ")
- print(" # # # ")
- print(" # ")
- print(" # ")
- print(" ")
- term.setTextColor(colors.blue)
- term.setBackgroundColor(colors.red)
- print(" ")
- print(" # ")
- print(" # ")
- print(" # # # ")
- print(" ### ")
- write(" # ")
- while true do
- e,k,x,y=os.pullEvent("monitor_touch")
- if x>0 and x<8 and y>0 and y<7 then
- rs.setOutput("left",true)
- --rednet.send(PCIDSER,"UP")
- end
- if x>0 and x<8 and y>6 and y<13 then
- --rednet.send(PCIDSER,"DOWN")
- rs.setOutput("left",false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment