Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --test_new_startup
- --HAL
- --Does the local file already exist.
- --insert check
- --Check for Peripherals
- local getperiph = peripheral.getNames()
- for i = 1, #getperiph do
- if peripheral.getType(getperiph[i])=="modem" then
- print("Modem Detected")
- print("Setting modem to "..getperiph[i])
- myModem = getperiph[i]
- print("Modem set to "..myModem)
- print("Activating Found Modem")
- rednet.open(myModem)
- else
- print("No Modem Detected")
- end
- end
Add Comment
Please, Sign In to add comment