forked from t-edson/PicPas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLCDLib_Commands.pas
63 lines (51 loc) · 1.97 KB
/
LCDLib_Commands.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
*
* (C) AguHDz 06-JUL-2017
* Ultima Actualizacion: 01-SEP-2017
*
* Compilador PicPas v.0.7.6 (https://github.com/t-edson/PicPas)
*
* LIBRERIA DE COMANDOS PARA DISPLAY LCD COMPATIBLE CON ESTANDAR HITACHI HD44780
*
}
unit LCDLib_Commands;
interface
const
// LCD commands
// Indentation means: values have to be summed up with the non indented value.
// e.g. use "LCDCommand(LCD_DISPLAY_ON_OFF_AND_CURSOR + LCD_DISPLAY_ON)" to switch the
// display on, with no underline cursor and cursor not blinking.
LCD_CLEAR_DISPLAY = $01;
LCD_DISPLAY_AND_CURSOR_HOME = $02;
LCD_CHARACTER_ENTRY_MODE = $04;
LCD_INCREMENT = $02;
LCD_DECREMENT = $00;
LCD_DISPLAY_SHIFT_ON = $01;
LCD_DISPLAY_SHIFT_OFF = $00;
LCD_DISPLAY_ON_OFF_AND_CURSOR = $08;
LCD_DISPLAY_ON = $04;
LCD_DISPLAY_OFF = $00;
LCD_CURSOR_UNDERLINE_ON = $02;
LCD_CURSOR_UNDERLINE_OFF = $00;
LCD_CURSOR_BLINK_ON = $01;
LCD_CURSOR_BLINK_OFF = $00;
LCD_DISPLAY_AND_CURSOR_SHIFT = $10;
LCD_DISPLAY_SHIFT = $08;
LCD_CURSOR_MOVE = $00;
LCD_RIGHT = $04;
LCD_LEFT = $00;
LCD_FUNCTION_SET = $20;
LCD_8BIT_INTERFACE = $10;
LCD_4BIT_INTERFACE = $00;
LCD_2LINES = $08;
LCD_1LINE = $00;
LCD_F_FONT_5_10 = $02;
LCD_F_FONT_5_8 = $00;
LCD_SET_DISPLAY_ADDRESS = $80;
LCD_ROW_0 = $00;
LCD_ROW_1 = $40;
LCD_ROW_2 = $14;
LCD_ROW_3 = $54;
LCD_SET_CGRAM_ADDRESS = $40;
implementation
end.