Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MonoBrickFirmware.IO.MotorSync"/> class.
 /// </summary>
 /// <param name="bitfield">Bitfield.</param>
 public MotorSync(OutputBitfield bitfield)
 {
     this.BitField = bitfield;
 }
Example #2
0
 /// <summary>
 /// Append a output bit field.
 /// </summary>
 /// <param name="bitField">Output bit field to append</param>
 public void Append(OutputBitfield bitField)
 {
     Append((byte)bitField);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MonoBrickFirmware.IO.MotorSync"/> class.
 /// </summary>
 /// <param name="bitfield">Bitfield.</param>
 public MotorSync(OutputBitfield bitfield)
 {
     this.BitField = bitfield;
 }
		/// <summary>
		/// Append a output bit field
		/// </summary>
		/// <param name="bitField">Bit field to append</param>
		public void Append (OutputBitfield bitField)
		{
			Append((sbyte) bitField, ParameterFormat.Short);
		}
			/// <summary>
			/// Initializes a new instance of the <see cref="MonoBrick.EV3.Motor"/> class.
			/// </summary>
			public MotorBase ()
			{
				this.DaisyChainLayer = DaisyChainLayer.EV3;
				this.BitField = OutputBitfield.OutA;
			}
			/// <summary>
			/// Initializes a new instance of the <see cref="MonoBrick.EV3.Output"/> class.
			/// </summary>
			/// <param name="bf">The output bitfields to use</param>
			/// <param name="daisyChainLayer">Daisy chain layer to use.</param>
			public Output(OutputBitfield bf, DaisyChainLayer daisyChainLayer){
				BitField = bf;
				DaisyChainLayer = daisyChainLayer;
			}
Example #7
0
		/// <summary>
		/// Append a output bit field.
		/// </summary>
		/// <param name="bitField">Output bit field to append</param>
		public void Append (OutputBitfield bitField)
		{
			Append((byte) bitField);
		}
Example #8
0
 /// <summary>
 /// Append a output bit field
 /// </summary>
 /// <param name="bitField">Bit field to append</param>
 public void Append(OutputBitfield bitField)
 {
     Append((sbyte)bitField, ParameterFormat.Short);
 }