39 lines
667 B
C
39 lines
667 B
C
#ifndef LCD_H
|
|
#define LCD_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include "utils.h"
|
|
|
|
#define MAX_CHARS_PER_LINE 16
|
|
#define MAX_ROWS 2
|
|
|
|
void LCD_Open(void);
|
|
void LCD_Clear(void);
|
|
void LCD_GoTo(uint8_t row, uint8_t col);
|
|
|
|
void LCD_OutString(__xdata const char* string, uint8_t max_chars);
|
|
short TERMIO_PutChar(unsigned char letter);
|
|
void LCD_OutNibble(uint8_t x);
|
|
void LCD_ClearToEnd(uint8_t curr_row);
|
|
|
|
//CGRAM character address
|
|
#define CGRAM_EXP 0
|
|
#define CGRAM_EXP_NEG 1
|
|
|
|
#include "utils.h"
|
|
#ifdef DESKTOP
|
|
const char* get_lcd_buf(void);
|
|
void print_lcd(void);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|