root / trunk / code / projects / colonet / testing / robot_routine_reg_test / lcd.h @ 13
History | View | Annotate | Download (542 Bytes)
1 |
|
---|---|
2 |
#ifndef _LCD_H_
|
3 |
#define _LCD_H_
|
4 |
|
5 |
|
6 |
//////lcd defines
|
7 |
#define RST 0x04 // pe2 (GPIO) |
8 |
#define SCE 0x01 // pb0 (~SS) |
9 |
#define D_C 0x10 // pb4 (GPIO?) |
10 |
#define SDI 0x04 // pb2 (MOSI) |
11 |
#define SCK 0x02 // pb1 (SCK) |
12 |
|
13 |
#define LCDPORT PORTB
|
14 |
#define LCDDDR DDRB
|
15 |
|
16 |
#define LCDRESETPORT PORTE
|
17 |
#define LCDRESETDDR DDRE
|
18 |
|
19 |
void lcd_init(void); |
20 |
void lcd_clear_screen( void ); |
21 |
void lcd_putbyte(unsigned char c); |
22 |
void lcd_putchar(char c); |
23 |
void lcd_putstr(char *s); |
24 |
void lcd_gotoxy(int x, int y); |
25 |
void lcd_putint(int value); |
26 |
|
27 |
#endif
|