Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side = "back" --This is the side of the monitor
- text = "Hello Sir"
- text2 = "The time is "
- text3 = "It's 3% "
- text4 = "outside of"
- text5 = "this Building"
- mon = peripheral.wrap(side)
- mon.setTextScale(1.5)
- while true
- do
- mon.setCursorPos(1,1)
- mon.write(text)
- mon.setCursorPos(1,3)
- mon.write(text2)
- mon.setCursorPos(13,3)
- mon.write(textutils.formatTime(os.time(),false))
- mon.setCursorPos(1,6)
- mon.write(text3)
- mon.setCursorPos(1,7)
- mon.write(text4)
- mon.setCursorPos(1,8)
- mon.write(text5)
- sleep(1)
- mon.clear()
- term.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement