c7segrgb 2.0.0.0
|
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. | |
void c7segrgb_cfg_setup | ( | c7segrgb_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void c7segrgb_cs_high | ( | c7segrgb_t * | ctx | ) |
Sets the state high of CS pin function.
ctx | Click object. |
@description The function sets the state high of CS pin on 7-SEG RGB Click board.
void c7segrgb_cs_low | ( | c7segrgb_t * | ctx | ) |
Sets the state low of CS pin function.
ctx | Click object. |
@description The function sets the state low of CS pin on 7-SEG RGB Click board.
err_t c7segrgb_init | ( | c7segrgb_t * | ctx, |
c7segrgb_cfg_t * | cfg ) |
Initialization function.
c7segrgb | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void c7segrgb_pwm_high | ( | c7segrgb_t * | ctx | ) |
Sets the state high of PWM pin function.
ctx | Click object. |
@description The function sets the state high of PWM pin on 7-SEG RGB Click board.
void c7segrgb_pwm_low | ( | c7segrgb_t * | ctx | ) |
Sets the state low of PWM pin function.
ctx | Click object. |
@description The function sets the state low of PWM pin on 7-SEG RGB Click board.
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.
ctx | Click object. |
character | Char to be written. |
green_brightness | Green color brightness. |
red_brightness | Red color brightness. |
blue_brightness | Blue 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.
void c7segrgb_set_seven_seg | ( | c7segrgb_t * | ctx | ) |
Sets all segments data.
ctx | Click object. |
@description The function sets the state and color of every segment from click board object segment array data.