-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLCD_interface.h
40 lines (27 loc) · 993 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
40
/*
* LCD_interface.h
*
* Created on: Sep 30, 2022
* Author: Mohamed Hashim Attiya Said
*/
#ifndef LCD_INTERFACE_H_
#define LCD_INTERFACE_H_
// initiate LCD (must be called before using LCD functions)
void LCD_voidInit(void);
// send command to LCD
void LCD_voidSendCommand(u8 copy_u8Command);
// print character On LCD
void LCD_voidSendCharacter(u8 copy_u8Character);
// Send string to LCD (input argument is a pointer to the beginning of the string)
void LCD_voidSendString(char* copy_pcString);
// Control the position of the printed characters
void LCD_voidPositionSet(u8 copy_u8RowNum, u8 copy_u8ColNum);
// Draw special character
void LCD_voidDrawSpecialCharacter(u8* copy_pu8Pattern, u8 copy_u8LocationNum, u8 copy_u8RowNum, u8 copy_u8ColNum);
// Write number
void LCD_voidWriteNum(u32 copy_u32Number);
// LCD_voidWriteNum Overflow
#if num > 4294967295
#error "Error: Integer Overflow"
#endif
#endif /* LCD_INTERFACE_H_ */