CuVoodoo STM32F1 firmware template
|
library to communicate with a Maxim MAX7219 IC attached to a 8-digit 7-segment (API) More...
Go to the source code of this file.
Functions | |
void | led_max7219_setup (uint8_t displays) |
setup communication with MAX7219 IC More... | |
void | led_max7219_nop (uint8_t display) |
do nothing (no operation) More... | |
void | led_max7219_on (uint8_t display) |
switch display on More... | |
void | led_max7219_off (uint8_t display) |
switch display off More... | |
void | led_max7219_test (bool test, uint8_t display) |
switch display in test or normal operation mode More... | |
void | led_max7219_intensity (uint8_t intensity, uint8_t digits, uint8_t display) |
set display intensity More... | |
bool | led_max7219_text (char *text, uint8_t display) |
display text More... | |
void | led_max7219_number (uint32_t number, uint8_t dots, uint8_t display) |
display number More... | |
library to communicate with a Maxim MAX7219 IC attached to a 8-digit 7-segment (API)
Definition in file led_max7219.h.
void led_max7219_intensity | ( | uint8_t | intensity, |
uint8_t | digits, | ||
uint8_t | display | ||
) |
set display intensity
[in] | intensity | level to set (0-15) |
[in] | digits | number of digits to display (1-8) |
[in] | display | display number in chain (0xff for all) |
Definition at line 228 of file led_max7219.c.
void led_max7219_nop | ( | uint8_t | display | ) |
do nothing (no operation)
[in] | display | display number in chain (0xff for all) |
void led_max7219_number | ( | uint32_t | number, |
uint8_t | dots, | ||
uint8_t | display | ||
) |
display number
[in] | number | number to display (8 digits max) |
[in] | dots | set bit if dot on corresponding digit should be displayed |
[in] | display | display number in chain (0xff for all) |
Definition at line 254 of file led_max7219.c.
void led_max7219_off | ( | uint8_t | display | ) |
switch display off
[in] | display | display number in chain (0xff for all) |
Definition at line 214 of file led_max7219.c.
void led_max7219_on | ( | uint8_t | display | ) |
switch display on
[in] | display | display number in chain (0xff for all) |
Definition at line 209 of file led_max7219.c.
void led_max7219_setup | ( | uint8_t | displays | ) |
setup communication with MAX7219 IC
[in] | displays | number of displays in the chain |
Definition at line 186 of file led_max7219.c.
void led_max7219_test | ( | bool | test, |
uint8_t | display | ||
) |
switch display in test or normal operation mode
[in] | test | switch in test mode (else normal operation) |
[in] | display | display number in chain (0xff for all) |
Definition at line 219 of file led_max7219.c.
bool led_max7219_text | ( | char * | text, |
uint8_t | display | ||
) |
display text
[in] | text | text to display (8 characters) |
[in] | display | display number in chain (0xff for all) |
Definition at line 240 of file led_max7219.c.