Write() private method

private Write ( int deviceAddress, byte buffer ) : void
deviceAddress int
buffer byte
return void
コード例 #1
0
        /////// <summary>
        /////// Executes the specified transaction.
        /////// </summary>
        /////// <param name="transaction">The transaction.</param>
        ////public void Execute(I2cTransaction transaction)
        ////{
        ////    if (transaction == null)
        ////    {
        ////        throw new ArgumentNullException("transaction");
        ////    }

        ////    driver.Execute(deviceAddress, transaction);
        ////}

        /// <summary>
        /// Writes the specified buffer.
        /// </summary>
        /// <param name="buffer">The buffer.</param>
        public void Write(params byte[] buffer)
        {
            //Execute(new I2cTransaction(new I2cWriteAction(buffer)));
            driver.Write(deviceAddress, buffer);
        }