Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
hd44780_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 HAW Hamburg
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define HD44780_CLEARDISPLAY (0x01)
30
#define HD44780_RETURNHOME (0x02)
31
#define HD44780_ENTRYMODESET (0x04)
32
#define HD44780_DISPLAYCONTROL (0x08)
33
#define HD44780_CURSORSHIFT (0x10)
34
#define HD44780_FUNCTIONSET (0x20)
35
#define HD44780_SETCGRAMADDR (0x40)
36
#define HD44780_SETDDRAMADDR (0x80)
43
#define HD44780_ENTRYRIGHT (0x00)
44
#define HD44780_ENTRYLEFT (0x02)
45
#define HD44780_ENTRYSHIFTINCREMENT (0x01)
46
#define HD44780_ENTRYSHIFTDECREMENT (0x00)
53
#define HD44780_DISPLAYON (0x04)
54
#define HD44780_DISPLAYOFF (0x00)
55
#define HD44780_CURSORON (0x02)
56
#define HD44780_CURSOROFF (0x00)
57
#define HD44780_BLINKON (0x01)
58
#define HD44780_BLINKOFF (0x00)
65
#define HD44780_DISPLAYMOVE (0x08)
66
#define HD44780_CURSORMOVE (0x00)
67
#define HD44780_MOVERIGHT (0x04)
68
#define HD44780_MOVELEFT (0x00)
75
#define HD44780_8BITMODE (0x10)
76
#define HD44780_4BITMODE (0x00)
77
#define HD44780_2LINE (0x08)
78
#define HD44780_1LINE (0x00)
79
#define HD44780_5x10DOTS (0x04)
80
#define HD44780_5x8DOTS (0x00)
87
#define HD44780_CMD_WAIT (2000U)
88
#define HD44780_INIT_WAIT_XXL (50000U)
89
#define HD44780_INIT_WAIT_LONG (4500U)
90
#define HD44780_INIT_WAIT_SHORT (150U)
91
#define HD44780_PULSE_WAIT_SHORT (1U)
92
#define HD44780_PULSE_WAIT_LONG (100U)
95
#ifdef __cplusplus
96
}
97
#endif
98
Generated on Mon Jun 30 2025 18:46:45 by
1.9.1