Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Monitor = peripheral.find("monitor")
- local TestNum = {1,5}
- function DrawDisplay()
- local w, h = Monitor.getSize()
- Monitor.setBackgroundColor(colors.white)
- Monitor.setTextColor(colors.black)
- Monitor.clear()
- local LEN = string.len(TestNum[1].." / "..TestNum[2])
- Monitor.setCursorPos(2,w-LEN/2)
- Monitor.write(TestNum[1].." / "..TestNum[2])
- end
- DrawDisplay()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement