Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
INA219 with PI4
#2
I guess it's a permission error.

# shell, not Python
usermod -G i2c -a USERNAME
# then reboot or open a new login shell with:
# su - USERNAME
You can check your memberships in groups with the command id.

After this action, the user should be able to write to the i2c bus.
If you try next time to access as normal user to a serial port, you'll get again an error.
In this case, you should add the user to the group dialout.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
INA219 with PI4 - by korenron - Nov-04-2019, 11:40 AM
RE: INA219 with PI4 - by DeaD_EyE - Nov-04-2019, 04:42 PM
RE: INA219 with PI4 - by korenron - Nov-05-2019, 12:11 PM
RE: INA219 with PI4 - by DeaD_EyE - Nov-05-2019, 01:19 PM
RE: INA219 with PI4 - by korenron - Nov-05-2019, 01:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020