public MWAccelrometer(MWBoard board) { if (board == null) throw new InvalidOperationException("Cannot construct Accelrometer without MWBoard"); Board = board; }
public MWAccelrometer(MWBoard board) { if (board == null) { throw new InvalidOperationException("Cannot construct Accelrometer without MWBoard"); } Board = board; }
/// <summary> /// Initializes a new instance of the <see cref="Mma8452qAccelerometer"/> class. /// This is the accelerometer in the MetaWear R board. /// </summary> /// <param name="board">The board.</param> public Mma8452qAccelerometer(MWBoard board) : base(board) { }