mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 18:13:46 +00:00
Add connstring example for SPI on RPi
This commit is contained in:
5
contrib/libnfc/pn532_spi_on_rpi.conf.sample
Normal file
5
contrib/libnfc/pn532_spi_on_rpi.conf.sample
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
## Typical configuration file for PN532 device on R-Pi connected using SPI
|
||||||
|
## Note: to use SPI port on R-Pi, you have to load kernel module spi-bcm2708:
|
||||||
|
## Edit /etc/modprobe.d/raspi-blacklist.conf and comment: #blacklist spi-bcm2708
|
||||||
|
name = "PN532 board via SPI"
|
||||||
|
connstring = pn532_spi:/dev/spidev0.0:500000
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
## Typical configuration file for PN532 device on R-Pi connected using UART
|
## Typical configuration file for PN532 device on R-Pi connected using UART
|
||||||
## Note: to use UART port on R-Pi, you have to disable linux serial console:
|
## Note: to use UART port on R-Pi, you have to disable linux serial console:
|
||||||
## http://learn.adafruit.com/adafruit-nfc-rfid-on-raspberry-pi/freeing-uart-on-the-pi
|
## http://learn.adafruit.com/adafruit-nfc-rfid-on-raspberry-pi/freeing-uart-on-the-pi
|
||||||
name = "PN532 board"
|
name = "PN532 board via UART"
|
||||||
connstring = pn532_uart:/dev/ttyAMA0
|
connstring = pn532_uart:/dev/ttyAMA0
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
## Typical configuration file for PN532 board (ie. microbuilder.eu / Adafruit) device
|
## Typical configuration file for PN532 board (ie. microbuilder.eu / Adafruit) device
|
||||||
name = "Adafruit PN532 board"
|
name = "Adafruit PN532 board via UART"
|
||||||
connstring = pn532_uart:/dev/ttyUSB0
|
connstring = pn532_uart:/dev/ttyUSB0
|
||||||
|
|||||||
Reference in New Issue
Block a user