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

Error messages? #1

Open
luckyxero46 opened this issue Feb 18, 2024 · 2 comments
Open

Error messages? #1

luckyxero46 opened this issue Feb 18, 2024 · 2 comments

Comments

@luckyxero46
Copy link

Hi- Sorry if this is not the correct place to put this, but I tried your project and am getting the following messages.

Do you know what could be wrong? I've never used a backpack before so do you think it's that? It was plugged in like your diagram stated.

Thanks for any help!
Elly

===========start===========
pi@raspberrypi:~/Edison $ python3 Edison.py
Traceback (most recent call last):
File "/home/pi/Edison/Edison.py", line 46, in
i2c = board.I2C()
File "/home/pi/.local/lib/python3.9/site-packages/board.py", line 409, in I2C
return busio.I2C(SCL, SDA)
File "/home/pi/.local/lib/python3.9/site-packages/busio.py", line 37, in init
self.init(scl, sda, frequency)
File "/home/pi/.local/lib/python3.9/site-packages/busio.py", line 162, in init
raise ValueError(
ValueError: No Hardware I2C on (scl,sda)=(3, 2)
Valid I2C ports: ((1, 3, 2), (0, 1, 0), (10, 45, 44))
===========end===========

@luckyxero46
Copy link
Author

Scratch that last comment. I figured it out. The i2C interface was not turned on.

Maybe you can add that to your instructions?

Turn on I2C interface.
Raspberry Pi> Preferences> Raspberry Pi Configuration > Interfaces > I2C switch to on.

@DevMiser
Copy link
Owner

Done. Thank you.

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