Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitorSide = "top" -- the side the monitor is on
- local textScale = 3 -- the text scale
- -- check if the monitor is present
- if peripheral.isPresent(monitorSide) and peripheral.getType(monitorSide) == "monitor" then
- local mon = peripheral.wrap(monitorSide) -- get the monitor
- mon.setTextScale(textScale) -- set the text scale
- term.redirect(mon) -- redirect output to the monitor
- else
- -- monitor not found, exit
- print("Monitor not found")
- return
- end
- -- your code here
- repeat
- repeat
- sleep(0)
- until redstone.getAnalogInput("right") > 0
- print (redstone.getAnalogInput("right"))
- sleep(0.5)
- shell.run("clear")
- until 1 < 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement