c7segrgb  2.0.0.0
Functions
main.c File Reference

7-SEG RGB Click example More...

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

Functions

void logic_one ()
 
void logic_zero ()
 
void set_color (uint8_t green, uint8_t red, uint8_t blue)
 
void set_seven_segment (uint8_t character, uint8_t green_brightness, uint8_t red_brightness, uint8_t blue_brightness)
 
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.
void set_color ( uint8_t green, uint8_t red, uint8_t blue )
  • Set the color of the LSB segment of the display function. void set_seven_segment ( uint8_t character, uint8_t green_brightness, uint8_t red_brightness, uint8_t blue_brightness )
  • Set whole character and color function.
Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ logic_one()

void logic_one ( )

◆ logic_zero()

void logic_zero ( )

◆ main()

void main ( void  )

◆ set_color()

void set_color ( uint8_t  green,
uint8_t  red,
uint8_t  blue 
)

◆ set_seven_segment()

void set_seven_segment ( uint8_t  character,
uint8_t  green_brightness,
uint8_t  red_brightness,
uint8_t  blue_brightness 
)