mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
I2C: Add tip about writeBulk() to transaction() (#1806)
This commit is contained in:
committed by
Peter Johnson
parent
607d6c148a
commit
810e58ea85
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user