本文主要是介绍STM32驱动海凌科FPM383C指纹模块,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
-
打开灯光
//闪烁灯光unsigned char Turn_Flash_Light[23]={0xF1,0x1F,0xE2,0x2E,0xB6,0x6B,0xA8,0x8A,0x00,0x0C,0x81,0x00,0x00,0x00,0x00,0x02,0x0f,0x04,0x01,0x14,0x14,0x05,0xBD};
F1 1F E2 2E B6 6B A8 8A 00 0C 81 00 00 00 00 02 0f 04 01 14 14 05 BD
-
是否有手指按压
//查询手指在位状态 unsigned char Query_Finger_State[18]={0xF1,0x1F,0xE2,0x2E,0xB6,0x6B,0xA8,0x8A,0x00,0x07,0x86,0x00,0x00,0x00,0x00,0x01,0x35,0xCA};
F1 1F E2 2E B6 6B A8 8A 00 07 86 00 00 00 00 01 35 CA
对应串口中断处理代码
if(USART3_RX_BUF[15]==0x01&&USART3_RX_BUF[16]==0x35) //查询手指状态{if(USART3_RX_BUF[21] == 0x01){Success_Flag = 1;}else{Success_Flag = 0;}
-
指纹匹配
//指纹匹配
unsigned char Finger_Match[18]={0xF1,0x1F,0xE2,0x2E,0xB6,0x6B,0xA8,0x8A,0x00,0x07,0x86,0x00,0x00,0x00,0x00,0x01,0x21,0xDE};
F1 1F E2 2E B6 6B A8 8A 00 07 86 00 00 00 00 01 21 DE
-
查询匹配结果
//查询匹配结果
unsigned char Query_Finger_Match_Result[18]={0xF1,0x1F,0xE2,0x2E,0xB6,0x6B,0xA8,0x8A,0x00,0x07,0x86,0x00,0x00,0x00,0x00,0x01,0x22,0xDD};
F1 1F E2 2E B6 6B A8 8A 00 07 86 00 00 00 00 01 22 DD
这篇关于STM32驱动海凌科FPM383C指纹模块的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!