Advertisement
Robinlemon

Lamp Server

Nov 27th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("top")
  2. i = 0
  3.  
  4. colorList = {DF0101, DF3A01, DF7401, DBA901, D7DF01, A5DF00, 74DF00, 3ADF00, 01DF01, 01DF3A, 01DF74, 01DFA5, 01DFD7,
  5. 01A9DB, 0174DF, 013ADF, 0101DF, 3A01DF, 7401DF, A901DB, DF01D7, DF01A5, DF0174, DF013A}
  6.  
  7. function sendColor(hex)
  8.   rednet.broadcast(hex,"Lamp")
  9. end
  10.  
  11. while true do
  12.   if i > #colorList then i = 0 end
  13.   sendColor( colorList[i] )
  14.   sleep(0)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement