adafruit / adafruit/Adafruit_CircuitPython_VL53L1X

Positional and other arguments missing.

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the traceback location in adafruit_vl53l1x.py at line 304 and reproduce the access and assignments from code.py around line 30. Inspect the roi_xy and roi_center entry points to determine which positional or other arguments are missing. Done means the shown property reads and assignments run without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.