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 D_S   1
 
#define D_L   2
 
#define DELAY_SHORT(void)   Delay_Cyc( D_S );
 
#define DELAY_LONG(void)   Delay_Cyc( D_L );
 

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

◆ D_L

#define D_L   2

◆ D_S

#define D_S   1

◆ DELAY_LONG

#define DELAY_LONG (   void)    Delay_Cyc( D_L );

◆ DELAY_SHORT

#define DELAY_SHORT (   void)    Delay_Cyc( D_S );

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ logic_one()

void logic_one ( void  )

◆ logic_zero()

void logic_zero ( void  )

◆ main()

void main ( void  )