Advertisement
MAcsensse

arcon

Jan 18th, 2022
1,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local controller = peripheral.find("arController") -- Finds the peripheral if one is connected
  2.  
  3. if controller == nil then error("arController not found") end
  4.  
  5. controller.setRelativeMode(true, 1600, 900) -- Convenient Aspect ratio for most screens
  6. while true do
  7.   local timer = os.startTimer(1)
  8.   local event, id
  9.   repeat
  10.     event, id = os.pullEvent("timer")
  11.   until id == timer
  12.   controller.clear() -- If you don't do this, the texts will draw over each other
  13.   controller.drawRightboundString(os.date(), -10, 10, 0xffffff)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement