Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add i2c comms details
  • Loading branch information
FoamyGuy committed Oct 1, 2025
commit 4b553b472058dc28ea63a4a4b257884fda075281
2 changes: 2 additions & 0 deletions adafruit_register/register_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ class I2CRegisterAccessor(RegisterAccessor):
registers over I2C. This class uses `adafruit_bus_device.I2CDevice` for
communication. I2CDevice automatically handles the R/W bit by setting
the lowest bit of the device address to 1 for reading and 0 for writing.
Device address & r/w bit will be written first, followed by register address,
then the data will be written or read.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, explain the protocol over I2C that this supports.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also talk about the relationship between address and data.

:param I2CDevice i2c_device: I2C device to communicate over
:param int address_width: The number of bytes in the address
Expand Down