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

A wireless redstone program....

Started by The Penguin21, 03 October 2015 - 06:08 AM
The Penguin21 #1
Posted 03 October 2015 - 08:08 AM
I am new at computercraft programming and i need a program for a computer and another program for a turtle, first, the program is searching that if from left side of the computer is coming a redstone signal, then it sends some kind of signal to the turtle via rednet to turn to right. Then it also searchs for a redstone signal coming from front of the computer, then when the computer gets the signal, the turtle goes forward.

(I am new to computercraft so sorry if this is a dumb question to ask someone else to make this program for me, but i didnt find anything helping, so if i get a reply to this post saying the code/program, i try to learn from it to make in future my own programs)

Thanks!

EDIT: Well i made the program but the problem is on the computer's program something like infinite loops, the program will automaticly end because i tried to made infinite loops, please help me if you know how to fix this, thanks!
Edited on 09 October 2015 - 03:44 PM
Lupus590 #2
Posted 03 October 2015 - 08:55 AM
have you looked at the wiki and some lua tutorials?

the wiki will have the redstone api which you will need as well as the rednet or modem api (rednet is easier)
Edited on 03 October 2015 - 02:30 PM
The Penguin21 #3
Posted 03 October 2015 - 10:10 AM
have you looked at the wiki and some lua tutorials?

the wiki will have the redstone api which you will need as well as the rednet or modem api (rednet is easier)

umm yes but… i dont know how i connect the code to the turtle. And also it may just say something about infinite loops that works about 10 seconds only…