Advertisement
Guest User

startup

a guest
Feb 28th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. --Settings
  2. mon = peripheral.wrap("bottom") --Screen Side
  3. mon.setTextScale(4)           --Text Size
  4. mon.setTextColor(colors.blue) --Text color
  5. strtpos = 12                  --Start position on screen
  6. speed = 0.5                   --Scroll Speed (Seconds)
  7. text = "Asarius put your message here"    --Displayed Text
  8.  
  9. pos = strtpos
  10. poslimit = 0 - strtpos
  11.  
  12. while true do
  13.  mon.clear()
  14.  mon.setCursorPos(pos, 1)
  15.  mon.write(text)
  16.  sleep(speed)
  17.  if pos == poslimit then
  18.   pos = strtpos
  19.  else
  20.   pos = pos - 1
  21.  end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement