Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- First we wrap the monitor peripheral
- local monitor = peripheral.find("monitor")
- monitor.setCursorPos(10,10)
- -- Let's clear the monitor
- local num = 1
- while num < 10000 do
- monitor.setTextColor(num)
- num = num + 1
- monitor.clear()
- -- And reset the cursor position
- monitor.setCursorPos(1,1)
- -- Then we can write whatever we want
- monitor.write("Hello, World")
- end
Add Comment
Please, Sign In to add comment