标题: RC522-stm32程序 [打印本页]

作者: zslkhp    时间: 2021-8-20 10:51
标题: RC522-stm32程序
RC522-stm32程序,亲测可用

单片机源程序如下:

  1. #include "stm32f10x.h"
  2. #include "OLED_I2C.h"
  3. #include "delay.h"
  4. #include "usart.h"
  5. #include "rc522.h"
  6. #include "rc522_config.h"
  7. #include <stdbool.h>

  8. /*
  9. CS--PA3 SCK-PA5 MOSI-PA7 MISO-PA6 RST-PA2

  10. */

  11. int main(void)
  12. {
  13.         DelayInit();
  14.         USART1_Config();
  15.     RC522_Init ();
  16.         printf ( "WF-RC522 Test\n" );
  17.         PcdReset ();
  18.    
  19.   /*设置工作方式*/   
  20.         M500PcdConfigISOType ( 'A' );
  21.   while(1)
  22.         {
  23.       IC_test();
  24.                 DelayMs(1000);
  25.         }               

  26. }
复制代码

代码工程51hei附件下载:
STM32F103-RC522.7z (195.15 KB, 下载次数: 72)



作者: 野肆3    时间: 2022-4-26 17:29
这不是优信电子的源码吗?




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1