Ok the first 3 screenshots are set up to show you the different Colours(channels) of the Rednet cables:
The channels used are white, orange, magenta, lightblue, yellow and lime for the pistons and pink for the lever(activation of gate). Its the first 7 of the Colour API and also correspond to the first 7 you get when changing the colours on the cable.
The 2 working positions are:
Closed:
Open:
The program for the computer is:
http://pastebin.com/M79MRkLx
It is programmed to interact with the computers bottom, but you can change that if you like in the code.
Oh and all the pistons are Sticky Pistons.[DOUBLEPOST=1387046366][/DOUBLEPOST]Thought I would also post an example of where I used this. Was building another castle but kinda got bored after making the basic layout
But it got a working gate
There is an 4 blocks high setup(just stack the mockup I posted) in both towers to open the 4x4 gate.
If you look carefully on the first picture, you will see that I was forced to hide the lime cable with a microblock cover. Couldn't really find another way.