Skip to content

Commit ec62169

Browse files
committed
Finger Unit
1 parent 5e6bf70 commit ec62169

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

examples/Unit/FINGER_FPC1020A/FINGER_FPC1020A.ino

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
// /*
2-
// *******************************************************************************
3-
// * Copyright (c) 2021 by M5Stack
4-
// * Equipped with M5Tough sample source code
5-
// * 配套 M5Tough 示例源代码
6-
// * Visit the website for more information:https://docs.m5stack.com/en/core/tough
7-
// * 获取更多资料请访问:https://docs.m5stack.com/zh_CN/core/tough
8-
// *
9-
// * describe:Hello World
10-
// * date:2021/7/21
11-
// *******************************************************************************
1+
/*
2+
*******************************************************************************
3+
* Copyright (c) 2021 by M5Stack
4+
* Equipped with M5Core sample source code
5+
* 配套 M5Core 示例源代码
6+
* Visit the website for more information:https://docs.m5stack.com/en/core/gray
7+
* 获取更多资料请访问:https://docs.m5stack.com/zh_CN/core/gray
8+
*
9+
* describe:Finger Unit example
10+
* date:2021/10/28
11+
*******************************************************************************
12+
Description: FINGER UNIT use case: Press the left button to enter the fingerprint entry mode. Press the middle button to enter the fingerprint identification mode,Right click to delete all saved users
13+
FINGER UNIT 使用案例按左键进入指纹录入模式,短按中间键进入指纹识别模式,按下右键删除所有保存的用户
14+
*/
1215

1316
#include <M5Stack.h>
14-
1517
#include "M5_FPC1020A.h"
1618

1719
FingerPrint FP_M;
@@ -37,8 +39,6 @@ void loop(){
3739
uint8_t res1;
3840
//ButtonA: Add user. 添加用户
3941
if(M5.BtnA.wasPressed()){
40-
41-
4242
M5.Lcd.fillRect(0, 0, 320, 200, BLACK);
4343
Serial.println("Start Fingerprint Typing");
4444
Serial.println("Put Your Finger on the sensor");
@@ -48,7 +48,7 @@ void loop(){
4848
M5.Lcd.println("Put Your Finger on the sensor");
4949
M5.Lcd.println("wating....");
5050

51-
res1 = FP_M.fpm_addUser(22,1);//(user_num, userPermission)
51+
res1 = FP_M.fpm_addUser(22,1); //(user_num, userPermission)
5252
if(res1 == ACK_SUCCESS){
5353
M5.Lcd.println("Success");
5454
Serial.println("Success");

0 commit comments

Comments
 (0)