root / trunk / code / projects / colonet / utilities / dragonfly_wireless_relay / lcd.h @ 396
History | View | Annotate | Download (559 Bytes)
1 |
#ifndef _LCD_H_
|
---|---|
2 |
#define _LCD_H_
|
3 |
|
4 |
|
5 |
|
6 |
//////lcd defines
|
7 |
#define RST _BV(4) // pd4 (GPIO) |
8 |
#define SCE _BV(0) // pb0 (~SS) |
9 |
#define D_C _BV(5) // pd5 (GPIO?) |
10 |
#define SDI _BV(2) // pb2 (MOSI) |
11 |
#define SCK _BV(1) // pb1 (SCK) |
12 |
|
13 |
#define LCDPORT PORTB
|
14 |
#define LCDDDR DDRB
|
15 |
|
16 |
#define LCDRESETPORT PORTD
|
17 |
#define LCDRESETDDR DDRD
|
18 |
|
19 |
|
20 |
|
21 |
void lcd_init(void); |
22 |
void lcd_clear_screen( void ); |
23 |
void lcd_putbyte(unsigned char c); |
24 |
void lcd_putchar(char c); |
25 |
void lcd_putstr(char *s); |
26 |
void lcd_gotoxy(int x, int y); |
27 |
void lcd_putint(int value); |
28 |
|
29 |
|
30 |
|
31 |
#endif
|