I2C: Add tip about writeBulk() to transaction() (#1806)

This commit is contained in:
Austin Shalit
2019-08-04 04:16:38 -04:00
committed by Peter Johnson
parent 607d6c148a
commit 810e58ea85
2 changed files with 7 additions and 3 deletions

View File

@@ -67,7 +67,9 @@ public class I2C implements AutoCloseable {
* Generic transaction.
*
* <p>This is a lower-level interface to the I2C hardware giving you more control over each
* transaction.
* transaction. If you intend to write multiple bytes in the same transaction and do not
* plan to receive anything back, use writeBulk() instead. Calling this with a receiveSize
* of 0 will result in an error.
*
* @param dataToSend Buffer of data to send as part of the transaction.
* @param sendSize Number of bytes to send as part of the transaction.