-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLCD_interface.h
39 lines (32 loc) · 1018 Bytes
/
LCD_interface.h
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
/*
* LCD_interface.h
*
* Created on: May 11, 2019
* Author: Merna
*/
#ifndef LCD_INTERFACE_H_
#define LCD_INTERFACE_H_
/***************************************************/
/**********************Public Macros****************/
/***************************************************/
/* LCD commands from Data sheet */
#define LCD_CLR 0x01
#define LCD_HOME 0x02
#define LCD_ENTRY_MODE 0x06
#define LCD_DIS_OFF 0x08
#define LCD_DIS_ON_CURS_ON 0x0E
#define LCD_FUNC_RESET 0x30
#define LCD_FUNC_SET_8BIT 0x38
#define LCD_SET_CURSER 0x80
#define LCD_DISP_ON_CURS_BLINK 0x0F
#define LCD_DISP_ON_CURS_OFF 0x0C
/***************************************************/
/*******************Public functions****************/
/***************************************************/
void LCD_vidInit(void);
void LCD_vidSendCommand(u8 u8CMDcopy);
void LCD_vidSendChar(u8 u8Charcopy);
//goto location function
//write custom char function
//write string function
#endif /* LCD_INTERFACE_H_ */