RasPi/CopterController/IMU/setup-i2c.sh
2015-02-09 11:30:03 -07:00

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