SHOW:
|
|
- or go back to the newest paste.
| 1 | -- this program will loop forever once triggered | |
| 2 | ||
| 3 | while true do -- this starts the infinite loop | |
| 4 | - | redstone.setOutput("bottom", true) -- this sends a redstone signal out the bottom of the computer
|
| 4 | + | redstone.setOutput("top", true) -- this sends a redstone signal out the bottom of the computer
|
| 5 | sleep(1) -- this tells it to wait 1 second | |
| 6 | - | redstone.setOutput("bottom", false) -- this tells it to stop the redstone output
|
| 6 | + | redstone.setOutput("top", false) -- this tells it to stop the redstone output
|
| 7 | sleep(5) -- this tells it to wait 5 seconds | |
| 8 | rednet.open("left") -- activates the wireless modem
| |
| 9 | rednet.send(36, "asdf") -- where 36 is the particular computer id, and asdf is the message content | |
| 10 | sleep(10) | |
| 11 | end -- not sure how this works but its necessary for it to loop successfully |