arduino(9):使用ESP8266,连接到RFID RC522 设备上,读取门禁卡上的设备信息
目录 前言 1,关于arduino 使用 rfid-rc522 2,使用 3,总结 前言 相关arduino 全部分类: https://blog.csdn.net/freewebsys/category_8799254.html 本文的原文连接是: https://blog.csdn.net/freewebsys/article/details/104114070 未经博主允许不得转载。 博主地址是: http://blog.csdn.net/freewebsys 1,关于arduino 使用 rfid-rc522 接线参考文章: https://blog.csdn.net/qq_31878883/article/details/88971935 这边使用的lib 库是 https://github.com/miguelbalboa/rfid 样例也是参考上面的,需要下载 库到 libraries 文件夹中。 有 1.7K 的收藏,然后使用其中的example 中的代码。 2,使用 代码,代码不是很多,但是需要注意下配置: #define RST_PIN 5 #define SS_PIN 4 这两个配置的是 5 和 4 的针脚,使用的是 SPI 进行通讯的。 /* * --------------------------------------------------------