Skip to content

adafruit_bus_device writeto(..., stop=stop) deprecated #53

Closed
@anecdata

Description

@anecdata

Using:
CircuitPython 6.0.0-alpha.2 on 2020-07-23
adafruit-circuitpython-bundle-6.x-mpy-20200723

CircuitPython 6.0.0 release notes:

Breaking changes since 5.x:
• The stop kwarg has been removed from I2C.writeto(). If no stop is desired, then use writeto_then_readfrom.

code.py error (occurs with various I2C device libraries):

  File "adafruit_register/i2c_bit.py", line 70, in __set__
  File "adafruit_register/i2c_bit.py", line 70, in __set__
  File "adafruit_bus_device/i2c_device.py", line 104, in write
TypeError: extra keyword arguments given

adafruit_bus_device/i2c_device.py#L104:
self.i2c.writeto(self.device_address, buf, start=start, end=end, stop=stop)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions