-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlcd_intf.h
48 lines (40 loc) · 1.21 KB
/
lcd_intf.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
41
42
43
44
45
46
47
48
/************************************************************************************************************
* LCD Interface
*
* Author:
* Stuart Miller
* Missouri University of Science & Technology
* Computer Engineering
* 2017
*
************************************************************************************************************/
#ifndef _LCD_H_
#define _LCD_H_
/***********************************************************
* Headers
************************************************************/
#include "driverlib.h"
#include "device.h"
/***********************************************************
* GPIO pin definitions
************************************************************/
#define LCD_EN 4
#define LCD_RS 62
#define LCD_DB0 21
#define LCD_DB1 20
#define LCD_DB2 17
#define LCD_DB3 16
#define LCD_DB4 15
#define LCD_DB5 14
#define LCD_DB6 13
#define LCD_DB7 12
/***********************************************************
* LCD Functions
************************************************************/
void lcd_setup();
void lcd_write(bool regSelect, uint16_t LCD_data);
void lcd_db_write( uint16_t LCD_data );
void lcd_print( char* text );
void lcd_clear();
void pin_write( uint16_t port, bool val );
#endif