Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variabeln
- RedSeite = "bottom"
- Modul = "back"
- nachricht = ""
- -- Start
- rednet.open(Modul)
- redstone.setOutput(RedSeite, true)
- monitor = peripheral.wrap("right")
- monitor.write("Warte auf Nachricht")
- function dashboard()
- shell.run("clear")
- monitor.write("Neuste Nachricht: ")
- monitor.write(nachricht)
- end
- function blink()
- for i = 1, 5 do
- redstone.setOutput(RedSeite, false)
- sleep(0.2)
- redstone.setOutput(RedSeite, true)
- sleep(0.2)
- end
- end
- -- Loader
- while true do
- senderId, message, protocol = rednet.receive()
- print("Sender: " .. senderId)
- print("Protocol: " .. protocol)
- nachricht = message
- parallel.waitForAll(dashboard, blink)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement