-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlcd.h
More file actions
34 lines (26 loc) · 778 Bytes
/
lcd.h
File metadata and controls
34 lines (26 loc) · 778 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
/*
* lcd.h
* Author: Joel
*/
#include "msp.h"
#include "delay.h"
#ifndef LCD_H_
#define LCD_H_
#define PORT_LCD_DATA (P4)
#define PORT_LCD_CTL (P5)
#define BIT_RS (BIT0)
#define BIT_RW (BIT1)
#define BIT_E (BIT2)
void Write_Instr_LCD(uint8_t DATA);
void Write_Data_LCD(uint8_t DATA);
void Write_Char_LCD(char letter);
void Clear_LCD();
void Home_LCD();
void Entry_Mode_LCD(uint8_t cursorForward, uint8_t shiftOn);
void Display_Power_LCD(uint8_t displayOn, uint8_t cursorOn, uint8_t blinkOn);
void Shift_Move_LCD(uint8_t shiftDisplay, uint8_t dirRight);
void Function_Set_LCD(uint8_t dualLine, uint8_t fiveByTen);
void secondLine_LCD();
void Write_String_LCD(char string[21], int line);
void initialize_LCD();
#endif /* LCD_H_ */