Loading...
Searching...
No Matches
hd44780_internal.h File Reference

Internal config and parameters for the HD44780 display. More...

Detailed Description

Internal config and parameters for the HD44780 display.

Author
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file hd44780_internal.h.

Go to the source code of this file.

HD44780 LCD commands

#define HD44780_CLEARDISPLAY   (0x01)
 
#define HD44780_RETURNHOME   (0x02)
 
#define HD44780_ENTRYMODESET   (0x04)
 
#define HD44780_DISPLAYCONTROL   (0x08)
 
#define HD44780_CURSORSHIFT   (0x10)
 
#define HD44780_FUNCTIONSET   (0x20)
 
#define HD44780_SETCGRAMADDR   (0x40)
 
#define HD44780_SETDDRAMADDR   (0x80)
 

HD44780 LCD entry modes flags

#define HD44780_ENTRYRIGHT   (0x00)
 
#define HD44780_ENTRYLEFT   (0x02)
 
#define HD44780_ENTRYSHIFTINCREMENT   (0x01)
 
#define HD44780_ENTRYSHIFTDECREMENT   (0x00)
 

HD44780 LCD control flags

#define HD44780_DISPLAYON   (0x04)
 
#define HD44780_DISPLAYOFF   (0x00)
 
#define HD44780_CURSORON   (0x02)
 
#define HD44780_CURSOROFF   (0x00)
 
#define HD44780_BLINKON   (0x01)
 
#define HD44780_BLINKOFF   (0x00)
 

HD44780 display and cursor shift flags

#define HD44780_DISPLAYMOVE   (0x08)
 
#define HD44780_CURSORMOVE   (0x00)
 
#define HD44780_MOVERIGHT   (0x04)
 
#define HD44780_MOVELEFT   (0x00)
 

HD44780 LCD functional flags

#define HD44780_8BITMODE   (0x10)
 
#define HD44780_4BITMODE   (0x00)
 
#define HD44780_2LINE   (0x08)
 
#define HD44780_1LINE   (0x00)
 
#define HD44780_5x10DOTS   (0x04)
 
#define HD44780_5x8DOTS   (0x00)
 

HD44780 LCD timings

#define HD44780_CMD_WAIT   (2000U)
 
#define HD44780_INIT_WAIT_XXL   (50000U)
 
#define HD44780_INIT_WAIT_LONG   (4500U)
 
#define HD44780_INIT_WAIT_SHORT   (150U)
 
#define HD44780_PULSE_WAIT_SHORT   (1U)
 
#define HD44780_PULSE_WAIT_LONG   (100U)
 

Macro Definition Documentation

◆ HD44780_1LINE

#define HD44780_1LINE   (0x00)

Definition at line 79 of file hd44780_internal.h.

◆ HD44780_2LINE

#define HD44780_2LINE   (0x08)

Definition at line 78 of file hd44780_internal.h.

◆ HD44780_4BITMODE

#define HD44780_4BITMODE   (0x00)

Definition at line 77 of file hd44780_internal.h.

◆ HD44780_5x10DOTS

#define HD44780_5x10DOTS   (0x04)

Definition at line 80 of file hd44780_internal.h.

◆ HD44780_5x8DOTS

#define HD44780_5x8DOTS   (0x00)

Definition at line 81 of file hd44780_internal.h.

◆ HD44780_8BITMODE

#define HD44780_8BITMODE   (0x10)

Definition at line 76 of file hd44780_internal.h.

◆ HD44780_BLINKOFF

#define HD44780_BLINKOFF   (0x00)

Definition at line 59 of file hd44780_internal.h.

◆ HD44780_BLINKON

#define HD44780_BLINKON   (0x01)

Definition at line 58 of file hd44780_internal.h.

◆ HD44780_CLEARDISPLAY

#define HD44780_CLEARDISPLAY   (0x01)

Definition at line 30 of file hd44780_internal.h.

◆ HD44780_CMD_WAIT

#define HD44780_CMD_WAIT   (2000U)

Definition at line 88 of file hd44780_internal.h.

◆ HD44780_CURSORMOVE

#define HD44780_CURSORMOVE   (0x00)

Definition at line 67 of file hd44780_internal.h.

◆ HD44780_CURSOROFF

#define HD44780_CURSOROFF   (0x00)

Definition at line 57 of file hd44780_internal.h.

◆ HD44780_CURSORON

#define HD44780_CURSORON   (0x02)

Definition at line 56 of file hd44780_internal.h.

◆ HD44780_CURSORSHIFT

#define HD44780_CURSORSHIFT   (0x10)

Definition at line 34 of file hd44780_internal.h.

◆ HD44780_DISPLAYCONTROL

#define HD44780_DISPLAYCONTROL   (0x08)

Definition at line 33 of file hd44780_internal.h.

◆ HD44780_DISPLAYMOVE

#define HD44780_DISPLAYMOVE   (0x08)

Definition at line 66 of file hd44780_internal.h.

◆ HD44780_DISPLAYOFF

#define HD44780_DISPLAYOFF   (0x00)

Definition at line 55 of file hd44780_internal.h.

◆ HD44780_DISPLAYON

#define HD44780_DISPLAYON   (0x04)

Definition at line 54 of file hd44780_internal.h.

◆ HD44780_ENTRYLEFT

#define HD44780_ENTRYLEFT   (0x02)

Definition at line 45 of file hd44780_internal.h.

◆ HD44780_ENTRYMODESET

#define HD44780_ENTRYMODESET   (0x04)

Definition at line 32 of file hd44780_internal.h.

◆ HD44780_ENTRYRIGHT

#define HD44780_ENTRYRIGHT   (0x00)

Definition at line 44 of file hd44780_internal.h.

◆ HD44780_ENTRYSHIFTDECREMENT

#define HD44780_ENTRYSHIFTDECREMENT   (0x00)

Definition at line 47 of file hd44780_internal.h.

◆ HD44780_ENTRYSHIFTINCREMENT

#define HD44780_ENTRYSHIFTINCREMENT   (0x01)

Definition at line 46 of file hd44780_internal.h.

◆ HD44780_FUNCTIONSET

#define HD44780_FUNCTIONSET   (0x20)

Definition at line 35 of file hd44780_internal.h.

◆ HD44780_INIT_WAIT_LONG

#define HD44780_INIT_WAIT_LONG   (4500U)

Definition at line 90 of file hd44780_internal.h.

◆ HD44780_INIT_WAIT_SHORT

#define HD44780_INIT_WAIT_SHORT   (150U)

Definition at line 91 of file hd44780_internal.h.

◆ HD44780_INIT_WAIT_XXL

#define HD44780_INIT_WAIT_XXL   (50000U)

Definition at line 89 of file hd44780_internal.h.

◆ HD44780_MOVELEFT

#define HD44780_MOVELEFT   (0x00)

Definition at line 69 of file hd44780_internal.h.

◆ HD44780_MOVERIGHT

#define HD44780_MOVERIGHT   (0x04)

Definition at line 68 of file hd44780_internal.h.

◆ HD44780_PULSE_WAIT_LONG

#define HD44780_PULSE_WAIT_LONG   (100U)

Definition at line 93 of file hd44780_internal.h.

◆ HD44780_PULSE_WAIT_SHORT

#define HD44780_PULSE_WAIT_SHORT   (1U)

Definition at line 92 of file hd44780_internal.h.

◆ HD44780_RETURNHOME

#define HD44780_RETURNHOME   (0x02)

Definition at line 31 of file hd44780_internal.h.

◆ HD44780_SETCGRAMADDR

#define HD44780_SETCGRAMADDR   (0x40)

Definition at line 36 of file hd44780_internal.h.

◆ HD44780_SETDDRAMADDR

#define HD44780_SETDDRAMADDR   (0x80)

Definition at line 37 of file hd44780_internal.h.