Sir_Popsilots

MonitorTest

Feb 28th, 2021 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. -- First we wrap the monitor peripheral
  2. local monitor = peripheral.find("monitor")
  3.  
  4. monitor.setCursorPos(10,10)
  5. -- Let's clear the monitor
  6. local num = 1
  7. while num < 10000 do
  8.     monitor.setTextColor(num)
  9.     num = num + 1
  10.     monitor.clear()
  11.  
  12. -- And reset the cursor position
  13.     monitor.setCursorPos(1,1)
  14.  
  15. -- Then we can write whatever we want
  16.     monitor.write("Hello, World")
  17. end
Add Comment
Please, Sign In to add comment