AForge.Robotics.Surveyor.SRV1.I2CWriteByte C# (CSharp) Метод

I2CWriteByte() публичный Метод

Write byte to I2C device.
Not connected to SRV-1. Connect to SRV-1 before using /// this method. Connection lost or communicaton failure. Try to reconnect.
public I2CWriteByte ( byte deviceID, byte register, byte byteToWrite ) : void
deviceID byte I2C device ID (7 bit notation).
register byte I2C device register to write to.
byteToWrite byte Byte to write to the specified register of the specified device.
Результат void
        public void I2CWriteByte( byte deviceID, byte register, byte byteToWrite )
        {
            byte[] response = new byte[100];

            // use SendAndReceive() to make sure the command was executed successfully
            int read = SendAndReceive( new byte[] { (byte) 'i', (byte) 'W', deviceID, register, byteToWrite }, response );
        }