@@ -8,18 +8,15 @@ Overview
8
8
9
9
This sample has the below functionalities:
10
10
11
+ #. Sensor LED is controlled using led APIs from zephyr subsystem.
11
12
#. Shows the number of fingerprints stored in the sensor.
13
+ #. Shows the sensor device's configurations like baud rate, library size, address and data packet size in UART frame.
12
14
#. When SENSOR_ATTR_RECORD_FREE_IDX is set then it search for free index in sensor library.
13
15
#. When SENSOR_ATTR_RECORD_ADD is set then it adds a new fingerprint to the sensor.
14
16
#. When SENSOR_ATTR_RECORD_FIND is set then it tries to find a match for the input fingerprint. On finding a match it returns ID and confidence.
15
17
#. When SENSOR_ATTR_RECORD_DEL is set then it deletes a fingerprint from the sensor.
16
18
17
- Note: Fingerprint add & delete functionalities work only when SENSOR_TRIG_TOUCH is set.
18
- Tricolored LED in the sensor hardware will, flash on the below conditions:
19
-
20
- #. On successful addition or deletion of fingerprint it will flash in blue three times.
21
- #. On finding a match for the input fingerprint it will flash in purple.
22
- #. In all other cases it will flash in red.
19
+ Note: Fingerprint add functionality work only when SENSOR_TRIG_TOUCH is set.
23
20
24
21
Wiring
25
22
*******
@@ -42,28 +39,26 @@ build this sample app using:
42
39
43
40
.. zephyr-app-commands ::
44
41
:zephyr-app: samples/sensor/grow_r502a
45
- :board: nrf52840dk/nrf52840
42
+ :board: esp32_devkitc_wroom/esp32/procpu
46
43
:goals: build flash
47
44
48
45
Sample Output
49
46
*************
50
47
51
48
.. code-block :: console
52
49
53
- *** Booting Zephyr OS build zephyr-v3.1.0-2640-g328bb73113d4 ***
54
- template count : 0
50
+ *** Booting Zephyr OS build v3.6.0-3147-g8ae1a2e2718e ***
51
+ template count : 4
52
+ baud 57600
53
+ addr 0xffffffff
54
+ lib_size 200
55
+ data_pkt_size 128
55
56
Fingerprint Deleted at ID #3
56
- Fingerprint template free idx at ID #0
57
- Waiting for valid finger to enroll as ID #0
57
+ Fingerprint template free idx at ID #3
58
+ Waiting for valid finger to enroll as ID #3
58
59
Place your finger
59
- Fingerprint successfully stored at #0
60
- template count : 1
61
- Matched ID : 0
62
- confidence : 170
63
- template count : 1
64
- Matched ID : 0
65
- confidence : 136
66
- template count : 1
67
- Matched ID : 0
68
- confidence : 318
60
+ Fingerprint successfully stored at #3
61
+ template count : 4
62
+ Matched ID : 2
63
+ confidence : 110
69
64
<repeats endlessly>
0 commit comments