TmsKerail

ArConstrollerTest.lua

Jul 20th, 2021 (edited)
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. controller = peripheral.wrap("right") -- Defines the controller to the left of the computer
  2. controller.setRelativeMode(true, 1600, 900) -- Convenient Aspect ratio for most screens
  3. while true do
  4.   local timer = os.startTimer(1)
  5.   local event, id
  6.   repeat
  7.     event, id = os.pullEvent("timer")
  8.   until id == timer
  9.   controller.clear() -- If you don't do this, the texts will draw over each other
  10.   controller.drawRightboundString(os.date(), 10, 10, 0xffffff)
  11. end
Add Comment
Please, Sign In to add comment