Advertisement
zero96x

ledmk2

Nov 15th, 2023 (edited)
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. modem = "front"
  2. rednet.open("front")
  3. prot = "AW1"
  4. w,h = term.getSize()
  5. ID = read()
  6. mon = peripheral.wrap("back")
  7. term.redirect(mon)
  8. term.clear()
  9.  
  10. --POS 0
  11.  
  12. while true do
  13.     senderID, message, protocol = rednet.receive(1)
  14.     if protocol == prot then
  15.             arr = message
  16.             arrEntry = arr[tonumber(ID)]
  17.             ledColor = arr[tonumber(ID)][2]
  18.             paintutils.drawFilledBox(1,1,70,5,ledColor)
  19.             term.clear()
  20.             sleep(.05)
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement