Loading...
Searching...
No Matches
hd44780_internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
26#define HD44780_CLEARDISPLAY (0x01)
27#define HD44780_RETURNHOME (0x02)
28#define HD44780_ENTRYMODESET (0x04)
29#define HD44780_DISPLAYCONTROL (0x08)
30#define HD44780_CURSORSHIFT (0x10)
31#define HD44780_FUNCTIONSET (0x20)
32#define HD44780_SETCGRAMADDR (0x40)
33#define HD44780_SETDDRAMADDR (0x80)
35
40#define HD44780_ENTRYRIGHT (0x00)
41#define HD44780_ENTRYLEFT (0x02)
42#define HD44780_ENTRYSHIFTINCREMENT (0x01)
43#define HD44780_ENTRYSHIFTDECREMENT (0x00)
45
50#define HD44780_DISPLAYON (0x04)
51#define HD44780_DISPLAYOFF (0x00)
52#define HD44780_CURSORON (0x02)
53#define HD44780_CURSOROFF (0x00)
54#define HD44780_BLINKON (0x01)
55#define HD44780_BLINKOFF (0x00)
57
62#define HD44780_DISPLAYMOVE (0x08)
63#define HD44780_CURSORMOVE (0x00)
64#define HD44780_MOVERIGHT (0x04)
65#define HD44780_MOVELEFT (0x00)
67
72#define HD44780_8BITMODE (0x10)
73#define HD44780_4BITMODE (0x00)
74#define HD44780_2LINE (0x08)
75#define HD44780_1LINE (0x00)
76#define HD44780_5x10DOTS (0x04)
77#define HD44780_5x8DOTS (0x00)
79
84#define HD44780_CMD_WAIT (2000U)
85#define HD44780_INIT_WAIT_XXL (50000U)
86#define HD44780_INIT_WAIT_LONG (4500U)
87#define HD44780_INIT_WAIT_SHORT (150U)
88#define HD44780_PULSE_WAIT_SHORT (1U)
89#define HD44780_PULSE_WAIT_LONG (100U)
91
92#ifdef __cplusplus
93}
94#endif
95