Skip to content
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

ADS1x15.ADS1115(0, i2c_address) throws error /dev/i2c-1 not found #4

Open
ddequidt opened this issue Mar 24, 2023 · 2 comments
Open

Comments

@ddequidt
Copy link

Hello,
Good work.
Just reporting an issue seen on my old RPi B which use i2c bus0 /dev/i2c-0

ADS1x15.ADS1115(0, i2c_address) throws error /dev/i2c-1 not found
Seems to be due to early initialisation of SMBus at

i2c = SMBus(1)

@chandrawi
Copy link
Owner

Yes, this should be an issue if the I2C / SMBus interface 1 is not activated, and user only want to using other SMBus. So I Think We should omit i2c initialisation in line 69. The I2C is also initialized in the constructor.

Have you test to omit code in line 69?

@ddequidt
Copy link
Author

Yes it works by removing the line.

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