set gpio values for camera