Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local controller = peripheral.find("arController") -- Finds the peripheral if one is connected
- if controller == nil then error("arController not found") end
- controller.setRelativeMode(true, 1600, 900) -- Convenient Aspect ratio for most screens
- while true do
- local timer = os.startTimer(1)
- local event, id
- repeat
- event, id = os.pullEvent("timer")
- until id == timer
- controller.clear() -- If you don't do this, the texts will draw over each other
- controller.drawRightboundString(os.date(), -10, 10, 0xffffff)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement