Update PN532/I2C sample config file for rev2.0 boards. Add a note regarding the change of I2C bus routing on R-Pi board rev 2.0.

This commit is contained in:
Laurent Latil 2013-06-15 19:38:23 +02:00 committed by Philippe Teuwen
parent 80a41010fb
commit 005713921e

View file

@ -2,5 +2,11 @@
## Note: to use SPI port on R-Pi, you have to load kernel modules i2c-bcm2708 and i2c-dev:
## Edit /etc/modprobe.d/raspi-blacklist.conf and comment: #blacklist i2c-bcm2708
## Edit /etc/modules and add a new line: i2c-dev
name = "PN532 board via SPI"
name = "PN532 board via I2C"
connstring = pn532_i2c:/dev/i2c-0
# Note: If you have an R-Pi revision 2.0, the I2C bus #1 is now routed to connector P1
# (instead of the I2C bus #0 routed on same connector on initial board revision), so
# the configuration to use would probably be:
# connstring = pn532_i2c:/dev/i2c-1