-- this program will loop forever once triggered
while true do -- this starts the infinite loop
redstone.setOutput("top", true) -- this sends a redstone signal out the bottom of the computer
sleep(1) -- this tells it to wait 1 second
redstone.setOutput("top", false) -- this tells it to stop the redstone output
sleep(5) -- this tells it to wait 5 seconds
rednet.open("left") -- activates the wireless modem
rednet.send(36, "asdf") -- where 36 is the particular computer id, and asdf is the message content
sleep(10)
end -- not sure how this works but its necessary for it to loop successfully
Comments