AForge.Robotics.Lego.NXTBrick.LsWrite C# (CSharp) Method

LsWrite() public method

Write to Low Speed bus.
Data length must be in the [1..16] range.
public LsWrite ( Sensor sensor, byte data, int expectedBytes ) : bool
sensor Sensor Sensor to write to.
data byte Data to send to the I2C device.
expectedBytes int Number of bytes expected from device on reply, [0..16]. /// Can be set to zero if I2C command does not suppose any reply.
return bool
        public bool LsWrite( Sensor sensor, byte[] data, int expectedBytes )
        {
            return LsWrite( sensor, data, expectedBytes, true );
        }

Same methods

NXTBrick::LsWrite ( Sensor sensor, byte data, int expectedBytes, bool waitReply ) : bool