-
Notifications
You must be signed in to change notification settings - Fork 0
/
lcd_api.h
34 lines (24 loc) · 875 Bytes
/
lcd_api.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
/*
* Project: ball-balancer
* Course: EE2361 Spring 2024
* Created on April 15, 2024, 2:21 PM
*/
#include "config.h"
#include <xc.h>
#ifndef LCD_H
#define LCD_H
/** contrast value for LCD initialization */
// #define LCD_CONTRAST 0x00 // set this in config.h
/** utility function used in implementations, made available for convenience */
void delay_ms(unsigned int num);
/** first part of initialization, sets up baud rate clock */
void init_baud_gen(void);
/** second part of initialization, sets up the actual lcd display */
void init_lcd(void);
/** self-explanatory: prints singular character */
void lcd_printChar(char package);
/** self-explanatory: prints string terminated by null character */
void lcd_printStr(char* package);
/** sets the start position - where on the display to write to */
void lcd_setCursor(char row, char col);
#endif /* LCD_H */