Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
lcd_dogm.h File Reference
#include <stdbool.h>
#include "std.h"
#include "mcu_periph/spi.h"
#include "led.h"
+ Include dependency graph for lcd_dogm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DOGM_FUN_SET_1   0x39
 
#define DOGM_BIAS_SET   0x15
 
#define DOGM_PWR_CTRL   0x55
 
#define DOGM_FOLLOWER   0x6E
 
#define DOGM_CONTRAST   0x70
 
#define DOGM_FUN_SET_2   0x38
 
#define DOGM_DISP_ON   0x0C
 
#define DOGM_CLEAR   0x01
 
#define DOGM_ENTRY_MODE   0x06
 

Functions

void lcd_cmd (uint8_t command)
 
void lcd_data (uint8_t data)
 
void lcd_dogm_init (void)
 

Macro Definition Documentation

◆ DOGM_BIAS_SET

#define DOGM_BIAS_SET   0x15

Definition at line 11 of file lcd_dogm.h.

◆ DOGM_CLEAR

#define DOGM_CLEAR   0x01

Definition at line 17 of file lcd_dogm.h.

◆ DOGM_CONTRAST

#define DOGM_CONTRAST   0x70

Definition at line 14 of file lcd_dogm.h.

◆ DOGM_DISP_ON

#define DOGM_DISP_ON   0x0C

Definition at line 16 of file lcd_dogm.h.

◆ DOGM_ENTRY_MODE

#define DOGM_ENTRY_MODE   0x06

Definition at line 18 of file lcd_dogm.h.

◆ DOGM_FOLLOWER

#define DOGM_FOLLOWER   0x6E

Definition at line 13 of file lcd_dogm.h.

◆ DOGM_FUN_SET_1

#define DOGM_FUN_SET_1   0x39

Definition at line 10 of file lcd_dogm.h.

◆ DOGM_FUN_SET_2

#define DOGM_FUN_SET_2   0x38

Definition at line 15 of file lcd_dogm.h.

◆ DOGM_PWR_CTRL

#define DOGM_PWR_CTRL   0x55

Definition at line 12 of file lcd_dogm.h.

Function Documentation

◆ lcd_cmd()

void lcd_cmd ( uint8_t  command)

Definition at line 41 of file lcd_dogm.c.

References lcd_spi_tx(), lcddogmCmdMode, and lcddogmSelect.

Referenced by lcd_dogm_init().

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

◆ lcd_data()

void lcd_data ( uint8_t  data)

Definition at line 50 of file lcd_dogm.c.

References mora_status_union::data, lcd_spi_tx(), lcddogmDataMode, and lcddogmSelect.

Referenced by lcd_dogm_init().

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

◆ lcd_dogm_init()

void lcd_dogm_init ( void  )

Definition at line 59 of file lcd_dogm.c.

References DOGM_BIAS_SET, DOGM_CLEAR, DOGM_CONTRAST, DOGM_DISP_ON, DOGM_ENTRY_MODE, DOGM_FOLLOWER, DOGM_FUN_SET_1, DOGM_PWR_CTRL, lcd_cmd(), lcd_data(), and lcd_dogm_init_hw().

+ Here is the call graph for this function: