Skip to content

Commit

Permalink
fix: docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
elagil committed Sep 9, 2024
1 parent a94d7e6 commit 08bff26
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sigmadsp/protocols/i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ class I2cProtocol(DspProtocol):
MAX_I2C_BYTES = 1024

# Maximum number of words (32 bit) that can be transferred with the
# maximum number of allowed bytes per SPI transfer
# maximum number of allowed bytes per I2C transfer
MAX_PAYLOAD_WORDS = int((MAX_I2C_BYTES - HEADER_LENGTH) / 4)

def __init__(self, bus_id: int = 1, device_address: int = 0x38):
"""Initialize the I2C hardware.
Bus will be 1 for RaspberryPi hardware.
Args:
bus_id (int, optional): Bus identifier. Defaults to 1.
device_address (int, optional): Device address. Defaults to 0x38 (ADAU145x default address).
Expand Down

0 comments on commit 08bff26

Please sign in to comment.