mirror of
https://github.com/brendanhaines/RasPi.git
synced 2024-11-09 16:44:40 -07:00
11 lines
255 B
Bash
Executable File
11 lines
255 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This little script ensures that the kernel I2C drivers are loaded, and it
|
|
# changes permissions on /dev/i2c-0 so you can run the demos as a regular
|
|
# user
|
|
|
|
sudo modprobe i2c-dev
|
|
sudo modprobe i2c-bcm2708
|
|
sleep 0.1
|
|
sudo chmod 666 /dev/i2c-0
|