Skip to content

IndexError on Raspberry Pi  #5

@pbricmont

Description

@pbricmont

Trying to use DymoScale with the Raspberry Pi 3B+ running the lastest Raspbian Buster and getting this:

File "/home/pi/dymoscale_simple.py", line 15, in
reading = dymo.weight
File "/usr/local/lib/python3.7/dist-packages/adafruit_dymoscale.py", line 76, in weight
reading = self.get_scale_data()
File "/usr/local/lib/python3.7/dist-packages/adafruit_dymoscale.py", line 122, in get_scale_data
bits[bit_idx] = bit_val
IndexError: list assignment index out of range

I'm using the lastest versions of Blinka, Dymoscale, and libgpiod. I've confirmed that the scale is wired correctly using a Metro M4 Express. Any ideas?

Thanks

Metadata

Metadata

Assignees

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