Last active
February 21, 2021 03:19
-
-
Save zentala/ef2997a77d23fd1903975ddb5897e26f to your computer and use it in GitHub Desktop.
Make I2C acccesible without sudo & preserve that setting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ sudo addgroup i2c && sudo usermod -G i2c "$USER" | |
# $ sudo vim /lib/udev/rules.d/60-i2c-tools.rules | |
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660" | |
# Device restart required. | |
# Tested with Ubuntu 20.04 on Raspberry Pi. | |
# | |
# https://lexruee.ch/setting-i2c-permissions-for-non-root-users.html | |
# https://www.raspberrypi.org/forums/viewtopic.php?t=26212 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment