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

Computer on/off button

Started by speed150mph, 04 February 2014 - 07:42 PM
speed150mph #1
Posted 04 February 2014 - 08:42 PM
Okay so I have a bunch of machines that I wanna be able to control from my house, and function number one I have in mind is an on/off switchboard so I can look at an interface and see what's on and what's off, and turn them on and off via redstone output through bundled cable to wireless redstone transmitters. i would really like it set up like this.

Quarry 1. [On]|[Off]
Quarry 2. [On]|[Off]
Ect.

I'm also using an advanced computer so would I be able to do it so that the current state of the machine is colored. Say like if the machine is on the on button glows green, and if off the off button glows red?

I've seen YouTube videos of some pretty intense things on computercraft so this is probably fairly easy, but I'm new to computer programing and computercraft so I just don't know how exactly to approach this. :P/>

Any advise or direction would be appreciated.
surferpup #2
Posted 05 February 2014 - 09:57 AM
Please see my code response to a similar question – reply #7. Also, there is a four part tutorial series (The Complete Monitor Buttons and Control Tutorial) a few of us are writing to address these issues. The first part is posted and subsequent parts will follow beginning this weekend.

If you read the response, you will easily be able to do what you are trying to do, as the code controls redstone exactly the way you are trying to do.
Edited on 05 February 2014 - 08:58 AM
awsmazinggenius #3
Posted 05 February 2014 - 10:05 AM
Yes, I'm working with surferpup on his tutorial. (Mostly because it bothers me that there have been 4 threads like this recently.) Please see his post for resources; I have looked over that first part myself and I believe that it is a great resource.