-
Notifications
You must be signed in to change notification settings - Fork 0
/
lcd.h
53 lines (37 loc) · 1023 Bytes
/
lcd.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
49
50
51
52
53
/*
* lcd.h
*
* Created on: Mar 1, 2016
* Author: nbergman
*/
#ifndef LCD_H_
#define LCD_H_
//#define IS_STEPPER_BOARD
//#define IS_STEPPER_BOARD
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <inc/tm4c123gh6pm.h>
#include "Timer.h"
/// Extra function for the stepper motor board
uint8_t lcd_reverseNibble(uint8_t x);
/// Initialize PORTB0:6 to Communicate with LCD
void lcd_init(void);
///Send Char to LCD
void lcd_putc(char data);
///Send Character array to LCD
void lcd_puts(char data[]);
///Clear LCD Screen
void inline lcd_clear(void);
///Return Cursor to 0,0
void inline lcd_home(void);
///Goto Line on LCD - 0 Indexed
void lcd_gotoLine(uint8_t lineNum);
///Set cursor position - top left is 0,0
void lcd_setCursorPos(uint8_t x, uint8_t y);
void lcd_printf(const char *format, ...);
///Send command to LCD - Position, Clear, Etc.
void lcd_sendCommand(uint8_t data);
///Send 4bit nibble to lcd, then clear port
void lcd_sendNibble(uint8_t theNibble);
#endif /* LCD_H_ */