Dot Matrix Display driver. More...

#include <stdint.h>
#include "MCAL.h"
Include dependency graph for DMD.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DMD_OE_Pin   GPIO_PIN_2
 DMD OE pin.
 
#define DMD_SCLK_Pin   GPIO_PIN_3
 DMD SCLK pin.
 
#define DMD_A_Pin   GPIO_PIN_1
 DMD A pin.
 
#define DMD_B_Pin   GPIO_PIN_0
 DMD B pin.
 
#define DMD_GPIO_Port   GPIO_PORT_A
 DMD GPIO port.
 

Enumerations

enum  DMDRows { DMD_ROWS_1_5_9_13 = 0, DMD_ROWS_2_6_10_14, DMD_ROWS_3_7_11_15, DMD_ROWS_4_8_12_16 }
 Dot Matrix Display rows. More...
 

Functions

void DMD_Latch (void)
 Latch shift register data to output.
 
void DMD_LightRows (DMDRows eRows)
 Light up row group. More...
 
void DMD_OE_RowsOff (void)
 Set OE pin low; all rows off.
 
void DMD_OE_RowsOn (void)
 Set OE pin high; all rows on.
 
void DMD_SetBuffer (uint8_t *pucBuffer)
 Set DMD image buffer. More...
 
void DMD_Update (void)
 Update dot matrix display. More...
 

Detailed Description

Dot Matrix Display driver.

Definition in file DMD.h.

Enumeration Type Documentation

◆ DMDRows

enum DMDRows

Dot Matrix Display rows.

Enumerator
DMD_ROWS_1_5_9_13 

DMD rows 1, 5, 9 and 13.

DMD_ROWS_2_6_10_14 

DMD rows 2, 6, 10 and 14.

DMD_ROWS_3_7_11_15 

DMD rows 3, 7, 11 and 15.

DMD_ROWS_4_8_12_16 

DMD rows 4, 8, 12 and 16.

Definition at line 32 of file DMD.h.

Function Documentation

◆ DMD_LightRows()

void DMD_LightRows ( DMDRows  eRows)

Light up row group.

Parameters
eRowsDMD row group

Definition at line 47 of file DMD.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DMD_SetBuffer()

void DMD_SetBuffer ( uint8_t *  pu8Buffer)

Set DMD image buffer.

Parameters
pu8BufferPointer to image buffer

Definition at line 91 of file DMD.c.

Here is the caller graph for this function:

◆ DMD_Update()

void DMD_Update ( void  )

Update dot matrix display.

Need to be called continously

Definition at line 100 of file DMD.c.

Here is the call graph for this function:
Here is the caller graph for this function: