Guest User

startup

a guest
Apr 19th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local tArgs = {...}
  2. if tArgs[1] == nil or tArgs[1] == help then
  3.   print"specify a frequency to toggle"
  4. end
  5. local freq = tArgs[1]
  6. local w = peripheral.wrap("right")
  7. w.setFreq(freq)
  8. if get() == true then
  9.   w.set(false)
  10. end
  11. if get() == false then
  12.   w.set(true)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment