Skip to content

RuntimeError: Maximum device count of 10 exceeded. #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
robmarkcole opened this issue Dec 3, 2019 · 1 comment
Closed

RuntimeError: Maximum device count of 10 exceeded. #16

robmarkcole opened this issue Dec 3, 2019 · 1 comment

Comments

@robmarkcole
Copy link

Attempting to use the DS18X20 with Metro M4 Airlift Lite with circuitpython 5.0.0-beta.0 I get the following error:

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 10 exceeded.
@tannewt
Copy link
Member

tannewt commented Dec 3, 2019

This is intentional. Here is the discussion for adding it: #7

You can set maximum_devices on the bus object higher to not hit this limit. https://github.com/adafruit/Adafruit_CircuitPython_OneWire/blob/master/adafruit_onewire/bus.py#L90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants