c7seg2 2.1.0.0
main.c File Reference

7-SEG 2 Click example More...

#include "board.h"
#include "log.h"
#include "c7seg2.h"

Macros

#define C7SEG2_NUM_COUNTER_RATE   10
 

Functions

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

Detailed Description

7-SEG 2 Click example

Description

The example demonstrates the use of the 7-SEG 2 click board by displaying a counter number [0.00-9.99] which is incremented by 0.01 at a desired rate.

The demo application is composed of two sections :

Application Init

Initializes the driver and performs default configuration, sets the device in output enabled mode and checks communication by reading device ID.

Application Task

Writes a counter number [0.00-9.99] to the display as frequently as possible. The displayed counter value is incremented by 0.01 at a rate defined with the C7SEG2_NUM_COUNTER_RATE macro.

Author
MikroE Team

Macro Definition Documentation

◆ C7SEG2_NUM_COUNTER_RATE

#define C7SEG2_NUM_COUNTER_RATE   10

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 )