Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aMon = peripheral.wrap("back")
- aMon.setTextSale(5)
- aString = "CC Scrolling Monitor String"
- tWidth = (#aString + 1)
- tPos, tMax = (aMon.width + tWidth)
- while true do
- if(tPos == (0 - tWidth)
- tPos = tMax
- end
- aMon.clear()
- aMon.setCursorPos(tPos, 1)
- aMon.write(aString)
- tPos - tPos - 1
- os.sleep(.15)
- end
Advertisement
Add Comment
Please, Sign In to add comment