Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fl1 = peripheral.wrap("monitor_1")
- fl2 = peripheral.wrap("monitor_2")
- fl1.clear()
- fl2.clear()
- function writeText(mon, scale, text, yVal)
- w, m = mon.getSize()
- length = string.len(text)
- minus = math.floor(w-length)
- x = math.floor(minus/2)
- mon.setCursorPos(x+1, yVal)
- mon.setTextScale(scale)
- mon.write(text)
- end
- writeText(fl1,2,"FLOOR",1)
- writeText(fl1,2,"001",2)
- writeText(fl2,2,"FLOOR",1)
- writeText(fl2,2,"002",2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement