c7segrgb  2.0.0.0
Macros | Functions
main.c File Reference

7-SEG RGB Click example More...

#include "board.h"
#include "log.h"
#include "c7segrgb.h"

Macros

#define DELAY_SHORT
 
#define DELAY_LONG
 

Functions

void logic_one (void)
 
void logic_zero (void)
 
void application_init (void)
 
void application_task (void)
 
void main (void)
 

Detailed Description

7-SEG RGB Click example

Description

This click shows all ten digits on a full-color single 7 segment digit display. Each segment has R, G, B LEDs that can be adjusted in 255 steps and the ability to control the brightness of all the LED.

The demo application is composed of two sections :

Application Init

Initialization driver enables - GPIO.

Application Task

This is an example which demonstrates the use of 7-SEG RGB Click board. This simple example shows all ten digits in different colors on 7-SEG RGB click.

note:

Additional Functions :
void logic_one ( )  - Generic logic one function.
void logic_zero ( ) - Generic logic zero function.

Timeing sequence chart: --------—| T0L T0H |______________ Logic 0: T0H ~ 250-550ns T0L ~ 700-1000ns

--------—| T1L T1H |______________ Logic 1: T1H ~ 700-1000ns T1L ~ 250-550ns

Author
MikroE Team

Macro Definition Documentation

◆ DELAY_LONG

#define DELAY_LONG

◆ DELAY_SHORT

#define DELAY_SHORT

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  )

◆ logic_one()

void logic_one ( void  )

◆ logic_zero()

void logic_zero ( void  )

◆ main()

void main ( void  )