Posted 06 September 2012 - 01:39 AM
Hey,
I'm very new to the ComputerCraft mod and programming in general. I'm trying to use a computer in combination with the redpower frame motors to create a working 2 story elevator. I've got all the necessary connections set up, now i just need to create a program that will:
-Activate on startup, program called "lift cotrol"
-When it recieves a rs signal from the left, it will wait (x) seconds, then send 5 pulses of rs signal lasting 0.25 seconds each to the right, as well as a constant rs signal for (x) amount of seconds to the top
-Clears itself automatically ready for next activation
The computer will be completely out of reach in-game (its for an adventure map), so it needs to be able to run without a hitch, and not need any kind of attention.
If someone can show me how to do this it would be much appreciated! :D/>/>
I'm very new to the ComputerCraft mod and programming in general. I'm trying to use a computer in combination with the redpower frame motors to create a working 2 story elevator. I've got all the necessary connections set up, now i just need to create a program that will:
-Activate on startup, program called "lift cotrol"
-When it recieves a rs signal from the left, it will wait (x) seconds, then send 5 pulses of rs signal lasting 0.25 seconds each to the right, as well as a constant rs signal for (x) amount of seconds to the top
-Clears itself automatically ready for next activation
The computer will be completely out of reach in-game (its for an adventure map), so it needs to be able to run without a hitch, and not need any kind of attention.
If someone can show me how to do this it would be much appreciated! :D/>/>