c4x4key 2.0.0.0
main.c File Reference

4x4Key Click example More...

#include "board.h"
#include "log.h"
#include "c4x4key.h"

Functions

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

Detailed Description

4x4Key Click example

Description

The library covers all the necessary functions to control the 4x4 Key Click. 4x4 Key click communicates with the target board via SPI interface. This library contains drivers for reading data from a sensor and get the position of the pressed button.

The demo application is composed of two sections :

Application Init

Configuring clicks and log objects.

Application Task

This is a example which demonstrates the use of 4x4 Key Click board. Detects and logs whether any of the buttons is pressed. Results are being sent to the Usart Terminal where you can track their changes. All data logs on usb uart when the button is triggered.

Author
Nenad Filipovic

Function Documentation

◆ application_init()

void application_init ( void )

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 )