Reputation: 453
I have a problem in getting the I2C working on a Raspberry Zero 2 with Buster (10) 2022-09-22. The I2C interface is enabled (Preferences > Raspberry Pi Configuration > Interfaces).
If I run the command: i2cdetect -y 1
I get the error: Error: Could not open file `/dev/i2c-1' or...
Any suggestion?
Upvotes: -1
Views: 3298
Reputation: 1
Had the same problem, after a clean install with I2C on
the ic2detection
showed my sensor, then a python virtual environment setup and a reboot later, I go this error.
Turns out the raspi-config had I2C off
in it and after sudo raspi-config
and switching it on again, everything worked.
Upvotes: -1