-
Notifications
You must be signed in to change notification settings - Fork 0
/
lcd.h
28 lines (19 loc) · 686 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
#ifndef __LCD_H
#define __LCD_H
#include "types.h"
#define LCD_COMMAND_PAGE_ZERO 0x28
#define LCD_COMMAND_PAGE_ONE 0x29
#define LCD_COMMAND_PAGE_TWO 0x2A
#define LCD_COMMAND_PAGE_THREE 0x2B
const uint8_t * const Fontx5x7_table[256];
void lcd_open();
void lcd_set_x(uint8_t xx);
void lcd_set_y_page(uint8_t yy);
void lcd_command(int8_t command);
void lcd_write(int8_t data);
void lcd_set_address(uint8_t yy, uint8_t xx);
void lcd_string(uint8_t yy, uint8_t xx, const char *str);
void lcd_display_char(char c);
void lcd_display_number(int number);
void lcd_display_number_w_decimal(int number, int decimal_place);
#endif /* __LCD_H */