Project 2  8×8 Dot-Matrix Display
Neff Site
Macros | Functions
c1294.h File Reference

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...
 

Detailed Description

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.

Author
Wolfgang Neff
Version
1.0
Date
2018-03-08
History
Created: 2018-03-08

Macro Definition Documentation

◆ C1294_COLS

#define C1294_COLS   8

◆ C1294_ROWS

#define C1294_ROWS   8

Function Documentation

◆ c1294_display_character()

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.

Parameters
characterThe character to be displayed.

◆ c1294_display_clear()

void c1294_display_clear ( void  )

Clear display.

Clears the display by turning all LEDs off.

◆ c1294_display_number()

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.

Parameters
numberThe number to be displayed.

◆ c1294_display_off()

void c1294_display_off ( void  )

Turn display off.

Turns the display on by entering shutdown mode.

◆ c1294_display_on()

void c1294_display_on ( void  )

Turn display on.

Turns the display on by leaving shutdown mode.

◆ c1294_init()

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.

◆ c1294_set_intensity()

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.

Parameters
intensityThe intensity of the luminance.

◆ c1294_transmit()

void c1294_transmit ( uint8_t  address,
uint8_t  data 
)

Transmit data.

Transmits data to the specified register.

Parameters
addressThe addressed register.
dataThe data to be transmitted.
Contact