Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.find("monitor")
- mon.setBackgroundColor(colors.black)
- mon.clear()
- while true do
- event,side,xPos,yPos = os.pullEvent("monitor_touch")
- print("X: "..xPos.."| Y: "..yPos)
- mon.setCursorPos(xPos,yPos)
- mon.setBackgroundColor(colors.green)
- mon.write(" ")
- end
Add Comment
Please, Sign In to add comment