SHOW:
|
|
- or go back to the newest paste.
| 1 | channel = 16 | |
| 2 | ||
| 3 | ||
| 4 | --if reci == nil then | |
| 5 | -- print("Enter recieving computer ID")
| |
| 6 | -- reci = read() | |
| 7 | --end | |
| 8 | ||
| 9 | if peripheral.getType("left")=="modem" then
| |
| 10 | modem = peripheral.wrap("left")
| |
| 11 | if modem.isWireless() then | |
| 12 | modem.open(channel) | |
| 13 | while modem.isOpen(channel) do | |
| 14 | print(" ")
| |
| 15 | c = 1 | |
| 16 | n = -1 | |
| 17 | colorTable = {}
| |
| 18 | while c <= 32768 do | |
| 19 | if rs.testBundledInput("back", c)==true then
| |
| 20 | t = c | |
| 21 | print(c) | |
| 22 | else | |
| 23 | t = 0 | |
| 24 | end | |
| 25 | table.insert(colorTable, t) | |
| 26 | modem.transmit(channel, channel, colorTable) | |
| 27 | c = c*2 | |
| 28 | n = n-1 | |
| 29 | end | |
| 30 | os.pullEvent("redstone")
| |
| 31 | end | |
| 32 | end | |
| 33 | end |