This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
iJerbo's profile picture

REther turtle program returning "attempt to call nil"

Started by iJerbo, 16 June 2013 - 07:00 PM
iJerbo #1
Posted 16 June 2013 - 09:00 PM
I am just trying to figure out how REther turtles work and I made this very basic program but it is returning "attempt to call nil"
What is wrong with it?
here it is:

k = peripheral.wrap("right")
k.setFreq(1)
if k.get() == true then
  print("yes")
else
  print("no")
end

Edit: Fixed, the peripheral was on the other side… oops :/
Lyqyd #2
Posted 17 June 2013 - 02:04 PM
Split into new topic.