fingerprint4 2.1.0.0
main.c File Reference

Fingerprint 4 Click example. More...

#include "board.h"
#include "log.h"
#include "fingerprint4.h"

Macros

#define LOCATION_IN_FLASH   0
 
#define NUMBER_OF_FINGERPRINTS   3
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Fingerprint 4 Click example.

Description

This example demonstrates the use of the Fingerprint 4 click boards by registering 3 fingerprints and then waiting until a finger is detected on the sensor and identifying if the fingerprint matches one of those stored in the Flash storage.

The demo application is composed of two sections :

Application Init

Initializes the driver and reads the sensor firmware version, then resets the sensor and removes all stored fingerprint templates. After that it registers 3 new fingerprint templates and stores them in the Flash storage.

Application Task

Waits until a finger is detected on the sensor, takes an image of the finger and checks if there's a fingerprint in the library that matches the one it has just read. If it finds a match, a fingerprint template ID will be displayed. All data is being logged on the USB UART where you can track the program flow.

Author
Stefan Filipovic

Macro Definition Documentation

◆ LOCATION_IN_FLASH

#define LOCATION_IN_FLASH   0

◆ NUMBER_OF_FINGERPRINTS

#define NUMBER_OF_FINGERPRINTS   3

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )