Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x, y, xsize, ysize
- local idChannel = 126
- local msg = 0
- term.setBackgroundColor(colors.green)
- term.clear()
- term.setCursorPos(1,1)
- term.write(msg)
- modem = peripheral.wrap("bottom")
- modem.transmit(idChannel,idChannel,msg)
- while true do
- event, side, xpos, ypos = os.pullEvent("monitor_touch")
- if msg == 9 then
- msg = 0
- else
- msg = msg + 1
- end
- term.clear()
- term.setCursorPos(1,1)
- term.write(msg)
- modem.transmit(idChannel,idChannel,msg)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement