-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLCD.h
More file actions
40 lines (31 loc) · 735 Bytes
/
LCD.h
File metadata and controls
40 lines (31 loc) · 735 Bytes
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.h
*
* Created on: Aug 15, 2023
* Author: Manwil
*/
#ifndef LCD_H_
#define LCD_H_
#include"DIO.h"
#include "STD_TYPES.h"
#define DATA_PORT PORTA
#define CONTROL_PORT PORTC
#define RS PIN0
#define RW PIN1
#define E PIN2
#define LEFT 0
#define RIGHT 1
void LCD_INIT();
void LCD_CLEAR();
void LCD_WRITE_COMMAND(u8 Data);
//write integer to screen
void LCD_WRITE_INT(u16 integer);
//write a character to screen
void LCD_WRITE_CHAR(u8 Data);
//write string to screen
void LCD_WRITE_STRING(u8 * String);
//Change position of cursor to the x & y position
void LCD_GOTO(u8 x_position, u8 y_position);
// Shift entire screen
void LCD_SHIFT(u8 Direction);
#endif /* LCD_H_ */