Skip to content

allow None args for "end" values in busio/bitbangio I2C and SPI, or change doc #2636

@dhalbert

Description

@dhalbert

The inline doc for read and write operations in {busio,bitbangio}.{I2C,SPI} says that the end values may be None, in which case they default to len(buf). However, the default value is really INT_MAX. If you give None explicitly, you'll get an error.

Related to adafruit/Adafruit_CircuitPython_BusDevice#45.

Either None should be handled or the doc should be changed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions