Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print( "-- GATE COMPUTER --" )
- rednet.open("back")
- -- white = up
- -- orange = down
- -- blue = back
- -- yellow = forward
- local function FireMotor( col )
- rs.setBundledOutput("left", colours[col])
- sleep(0.4)
- rs.setBundledOutput("left", 0)
- sleep(0.4)
- end
- local function OpenGate()
- print( "Opening gate" )
- for i=1, 3 do
- FireMotor("yellow")
- end
- for i=1, 3 do
- FireMotor("white")
- end
- end
- local function CloseGate()
- print( "Closing gate" )
- for i=1, 3 do
- FireMotor("orange")
- end
- for i=1, 3 do
- FireMotor("lightBlue")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment