Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitors = {
- peripheral.wrap("left");
- peripheral.wrap("right");
- --You could add tons of monitors here because the allMonitors function will write on every monitor!
- }
- function allMonitors(message)
- for i=1,#monitors do
- term.redirect(monitors[i])
- term.clear()
- print(message)
- term.redirect(term.native())
- end
- end
- while true do
- rednet.open("top")
- senderId, message, protocol = rednet.receive("infoBoard")
- term.setBackgroundColor(colors.black)
- term.clear()
- allMonitors(message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement