赞
踩
raspi-config
sudo apt-get install python-spidev python3-spidev
cd ~
git clone https://github.com/lthiery/SPI-Py.git
cd SPI-Py
git checkout 8cce26b9ee6e69eb041e9d5665944b88688fca68
sudo python setup.py install
sudo python3 setup.py install
cd ~
git clone https://github.com/mxgxw/MFRC522-python.git
cd MFRC522-python
python Read.py
引脚连接图
SDA 24 GPIO8
SCK 23 GPIO11
MOSI 19 GPIO10
MISO 21 GPIO9
IRQ None None
GND Any Any Ground
RST 22 GPIO25
3.3V 1 3V3
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。