Skip to content

ValueError: Incorrect family code in device address. #14

Closed
@robmarkcole

Description

@robmarkcole

Attempting to use the DS18X20 with Metro M4 Airlift Lite with circuitpython 5.0.0-beta.0 with the ds18x20_simpletest.py example. I hit this error, so am now setting a large _maximum_devices. However I now hit a different error - ValueError: Incorrect family code in device address.

>>> import time
>>> import board
>>> from adafruit_onewire.bus import OneWireBus
>>> from adafruit_ds18x20 import DS18X20
>>> ow_bus = OneWireBus(board.D5)
>>> ow_bus.maximum_devices(200)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'int' object is not callable
>>> ow_bus._maximum_devices = 200
>>> ds18 = DS18X20(ow_bus, ow_bus.scan()[0])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_onewire/bus.py", line 156, in scan
RuntimeError: Maximum device count of 200 exceeded.
>>> ow_bus._maximum_devices = 2000
>>> ds18 = DS18X20(ow_bus, ow_bus.scan()[0])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_ds18x20.py", line 56, in __init__
ValueError: Incorrect family code in device address.

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