c7segrgb 2.0.0.0
Public function

Functions

void c7segrgb_cfg_setup (c7segrgb_cfg_t *cfg)
 Config Object Initialization function.
 
err_t c7segrgb_init (c7segrgb_t *ctx, c7segrgb_cfg_t *cfg)
 Initialization function.
 
void c7segrgb_cs_low (c7segrgb_t *ctx)
 Sets the state low of CS pin function.
 
void c7segrgb_cs_high (c7segrgb_t *ctx)
 Sets the state high of CS pin function.
 
void c7segrgb_pwm_low (c7segrgb_t *ctx)
 Sets the state low of PWM pin function.
 
void c7segrgb_pwm_high (c7segrgb_t *ctx)
 Sets the state high of PWM pin function.
 
void c7segrgb_set_num (c7segrgb_t *ctx, uint8_t character, uint8_t green_brightness, uint8_t red_brightness, uint8_t blue_brightness)
 Sets the character and its color function.
 
void c7segrgb_set_seven_seg (c7segrgb_t *ctx)
 Sets all segments data.
 

Detailed Description

Function Documentation

◆ c7segrgb_cfg_setup()

void c7segrgb_cfg_setup ( c7segrgb_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ c7segrgb_cs_high()

void c7segrgb_cs_high ( c7segrgb_t * ctx)

Sets the state high of CS pin function.

Parameters
ctxClick object.

@description The function sets the state high of CS pin on 7-SEG RGB Click board.

◆ c7segrgb_cs_low()

void c7segrgb_cs_low ( c7segrgb_t * ctx)

Sets the state low of CS pin function.

Parameters
ctxClick object.

@description The function sets the state low of CS pin on 7-SEG RGB Click board.

◆ c7segrgb_init()

err_t c7segrgb_init ( c7segrgb_t * ctx,
c7segrgb_cfg_t * cfg )

Initialization function.

Parameters
c7segrgbClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ c7segrgb_pwm_high()

void c7segrgb_pwm_high ( c7segrgb_t * ctx)

Sets the state high of PWM pin function.

Parameters
ctxClick object.

@description The function sets the state high of PWM pin on 7-SEG RGB Click board.

◆ c7segrgb_pwm_low()

void c7segrgb_pwm_low ( c7segrgb_t * ctx)

Sets the state low of PWM pin function.

Parameters
ctxClick object.

@description The function sets the state low of PWM pin on 7-SEG RGB Click board.

◆ c7segrgb_set_num()

void c7segrgb_set_num ( c7segrgb_t * ctx,
uint8_t character,
uint8_t green_brightness,
uint8_t red_brightness,
uint8_t blue_brightness )

Sets the character and its color function.

Parameters
ctxClick object.
characterChar to be written.
green_brightnessGreen color brightness.
red_brightnessRed color brightness.
blue_brightnessBlue color brightness.
 
 character: 
       0x06 - 0
       0x5B - 1
       0x4F - 2
       0x66 - 3
       0x6D - 4
       0x7D - 5
       0x07 - 6
       0x7F - 7
       0x6F - 8
       0x3F - 9
       0x80 - .
 

@description The function sets character and its color.

◆ c7segrgb_set_seven_seg()

void c7segrgb_set_seven_seg ( c7segrgb_t * ctx)

Sets all segments data.

Parameters
ctxClick object.

@description The function sets the state and color of every segment from click board object segment array data.