EPPL example libraries
0.1 alpha
Main Page
Related Pages
Modules
Files
Examples
File List
Globals
All
Files
Functions
Variables
Groups
Pages
alcddrv_cmd.h
Go to the documentation of this file.
1
#ifndef ALCDDRV_CMD_H_INCLUDED
2
#define ALCDDRV_CMD_H_INCLUDED
3
/*
4
Copyright (c) 2014, Radoslaw Koppel
5
All rights reserved.
6
7
Redistribution and use in source and binary forms, with or without
8
modification, are permitted provided that the following conditions are met:
9
10
- Redistributions of source code must retain the above copyright
11
notice, this list of conditions and the following disclaimer.
12
13
- Redistributions in binary form must reproduce the above copyright
14
notice, this list of conditions and the following disclaimer in the
15
documentation and/or other materials provided with the distribution.
16
17
- Neither the name of the copyright holders nor the
18
names of its contributors may be used to endorse or promote products
19
derived from this software without specific prior written permission.
20
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER BE LIABLE FOR ANY
25
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*/
54
#define ALCD_CMD_Clear 0x01
55
60
#define ALCD_CMD_Home 0x02
61
69
#define ALCD_TOPMOST_LONG_CMD 0x03
70
76
#define ALCD_CMD_Mode 0x04
77
80
#define ALCD_CMD_Mode_Increment 0x02
81
84
#define ALCD_CMD_Mode_Decrement 0
85
88
#define ALCD_CMD_Mode_DisplayShift 0x01
89
95
#define ALCD_CMD_On 0x08
96
99
#define ALCD_CMD_On_Display 0x04
100
103
#define ALCD_CMD_On_Cursor 0x02
104
107
#define ALCD_CMD_On_Blink 0x01
108
114
#define ALCD_CMD_Shift 0x10
115
122
#define ALCD_CMD_Shift_Cursor 0
123
130
#define ALCD_CMD_Shift_Display 0x08
131
135
#define ALCD_CMD_Shift_Left 0
136
140
#define ALCD_CMD_Shift_Right 0x04
141
147
#define ALCD_CMD_Func 0x20
148
151
#define ALCD_CMD_Func_DataBits_8 0x10
152
155
#define ALCD_CMD_Func_DataBits_4 0
156
159
#define ALCD_CMD_Func_Lines_1 0
160
163
#define ALCD_CMD_Func_Lines_2 0x08
164
167
#define ALCD_CMD_Func_Char_5x7 0
168
171
#define ALCD_CMD_Func_Char_5x10 0x04
172
181
#define ALCD_CMD_SetCGRAM 0x40
182
191
#define ALCD_CMD_SetDDRAM 0x80
192
198
#define ALCD_SecondLineAddr 0x40
199
203
#endif
/* ALCDDRV_CMD_H_INCLUDED */
alcddrv
alcddrv_cmd.h
Generated on Sun Mar 2 2014 10:16:21 for EPPL example libraries by
1.8.3.1