-
Notifications
You must be signed in to change notification settings - Fork 0
/
HD44780.h
32 lines (27 loc) · 1.14 KB
/
HD44780.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
//**********************************************************
//
// DieHard
// Header äëÿ àëüòåðíàòèâíîé áèáëèîòåêè LCD äëÿ HD44780 ÌÝËÒ
//
//**********************************************************
#define LCDPORT PORTD
#define LCDDDR DDRD
#define LCDPIN PINCD
#define LCD_RS 0
#define LCD_RD 1
#define LCD_E 2
#define LCD_DB4 4
#define LCD_DB5 5
#define LCD_DB6 6
#define LCD_DB7 7
#pragma used+
void lcd_init(char ); // Èíèöèàëèçàöèÿ LCD ñ íóæíîé ñòðàíèöåé çíàêîãåíåðàòîðà (0/1)
void lcd_clear(void); // Î÷èñòêà LCD
void lcd_gotoxy(unsigned char , unsigned char ); // Ïîçèöèîíèðîâàíèå êóðñîðà
void lcd_putchar(unsigned char ); // Âûâîä ñèìâîëà â òåêóùóþ ïîçèöèþ êóðñîðà
void lcd_puthex(unsigned char ); // Âûâîä Hex â òåêóùóþ ïîçèöèþ êóðñîðà
void lcd_puts(unsigned char *); // Âûâîä ñòðîêè èç ìàññèâà â òåêóùóþ ïîçèöèþ êóðñîðà
void lcd_putsf(char flash *); // Âûâîä ñòðîêè èç Flash â òåêóùóþ ïîçèöèþ êóðñîðà
void lcd(unsigned char );
void lcd_cmd(unsigned char );
#pragma used-