Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- if tArgs[1] == nil or tArgs[1] == help then
- print"specify a frequency to toggle"
- end
- local freq = tArgs[1]
- local w = peripheral.wrap("right")
- w.setFreq(freq)
- if get() == true then
- w.set(false)
- end
- if get() == false then
- w.set(true)
- end
Advertisement
Add Comment
Please, Sign In to add comment