Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = "front"
- rednet.open("front")
- prot = "AW1"
- w,h = term.getSize()
- ID = read()
- mon = peripheral.wrap("back")
- term.redirect(mon)
- term.clear()
- --POS 0
- while true do
- senderID, message, protocol = rednet.receive(1)
- if protocol == prot then
- arr = message
- arrEntry = arr[tonumber(ID)]
- ledColor = arr[tonumber(ID)][2]
- paintutils.drawFilledBox(1,1,70,5,ledColor)
- term.clear()
- sleep(.05)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement