http://louisthiery.com/spi-python-hardware-spi-for-raspi/
Download
http://www.raspberrypi.org/downloads
install raspberry pi
http://elinux.org/RPi_Easy_SD_Card_Setup
add
- i2c-bcm2708
- i2c-dev
- in file /etc/modules (use sudo)
- sudo vi /etc/modules
install tools
- sudo apt-get install python-smbus
- sudo apt-get install i2c-tools
close blacklist
add # in front of
i2c-bcm2708
spi-bcm2708
in file /etc/modprobe.d/raspi-blacklist.conf (use sudo)
- sudo vi /etc/modprobe.d/raspi-blacklist.conf
restart
sudo init 6
you will see spidev0.0 spidev0.1 i2c-0 i2c-1 in /dev/
ls /dev
ไม่มีความคิดเห็น:
แสดงความคิดเห็น