Skip to content

Positional and other arguments missing. #22

Open
@JohnFFlanagan

Description

@JohnFFlanagan

in the VL53l1X code I get errors like:
Traceback (most recent call last):
File "code.py", line 30, in
File "adafruit_vl53l1x.py", line 304, in roi_xy
When I run the following lines:
i2c = busio.I2C(board.GP1, board.GP0) # uses board.SCL and board.SDA

i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller

vl53 = adafruit_vl53l1x.VL53L1X(i2c)
....
print(vl53.roi_xy)
vl53.roi_xy = (16,16)
print(vl53.roi_center)
vl53.roi_center = 199

I opened a pull request for code that appears to work before I addressed these issues. I'm sorry. Next time, I will do it in the right order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions