Project 2
8×8 Dot-Matrix Display
|
Neff Site |
This module implements an interface to the MIKROE-1294 8x8 Y Click. More...
Go to the source code of this file.
Macros | |
#define | C1294_COLS 8 |
#define | C1294_ROWS 8 |
Functions | |
void | c1294_transmit (uint8_t address, uint8_t data) |
Transmit data. More... | |
void | c1294_init (void) |
Initialize click module. More... | |
void | c1294_display_on (void) |
Turn display on. More... | |
void | c1294_display_off (void) |
Turn display off. More... | |
void | c1294_display_clear (void) |
Clear display. More... | |
void | c1294_set_intensity (uint8_t intensity) |
Dim display. More... | |
void | c1294_display_number (uint8_t number) |
Display a number. More... | |
void | c1294_display_character (char character) |
Display a character. More... | |
This module implements an interface to the MIKROE-1294 8x8 Y Click.
The MIKROE-1294 8x8 Y Click implements a 8x8 dot-matrix using a MAX7219 serially interfaced 8-Digit LED display driver. This module provides an interface to this module.
#define C1294_COLS 8 |
#define C1294_ROWS 8 |
void c1294_display_character | ( | char | character | ) |
Display a character.
Displays a character by transmitting the corresponding pattern to the controller. All printable ASCII signs can be specified.
character | The character to be displayed. |
void c1294_display_clear | ( | void | ) |
Clear display.
Clears the display by turning all LEDs off.
void c1294_display_number | ( | uint8_t | number | ) |
Display a number.
Displays a number by transmitting the corresponding pattern to the controller. Just one digit can be displayed.
number | The number to be displayed. |
void c1294_display_off | ( | void | ) |
Turn display off.
Turns the display on by entering shutdown mode.
void c1294_display_on | ( | void | ) |
Turn display on.
Turns the display on by leaving shutdown mode.
void c1294_init | ( | void | ) |
Initialize click module.
Initializes the click module by setting up the SPI module and configuring the module. Decode mode is turned off and the scan limit comprises all digits. The display is turned off after initialization.
void c1294_set_intensity | ( | uint8_t | intensity | ) |
Dim display.
Dims the display. The luminance is determined by the formula 2*intensity+1/32. Intensity ranges from 0 to 15. Please refer to page 9 of the data sheet for the details.
intensity | The intensity of the luminance. |
void c1294_transmit | ( | uint8_t | address, |
uint8_t | data | ||
) |
Transmit data.
Transmits data to the specified register.
address | The addressed register. |
data | The data to be transmitted. |
Contact | Generated by 1.8.13 |