clothoid
[aversive.git] / projects / kbd_uart_test / lcd_config.h
1 /* change these definitions to adapt setting */
2 // changed PIN in BIT to avoid confusion, don'use old version
3 #define LCD_PORT PORTC
4
5 /*  If the LCD module is a 1 line version with double addressing (8
6     chars by segment), you need to define LCD_LINES to 2 and
7     LCD_DOUBLE_ADDRESSING to 1. This is the case with for example
8     SAMSUNG LTN 211 - N01.
9 */
10
11 #define LCD_LINES           2     /* visible lines */
12 #define LCD_LINE_LENGTH  0x40     /* internal line length */
13 #define LCD_START_LINE1  0x00     /* DDRAM address of first char of line 1 */
14 #define LCD_START_LINE2  0x40     /* DDRAM address of first char of line 2 */
15 #define LCD_START_LINE3  0x14     /* DDRAM address of first char of line 3 */
16 #define LCD_START_LINE4  0x54     /* DDRAM address of first char of line 4 */
17
18 #define LCD_DOUBLE_ADDRESSING 1
19
20 #define LCD_DATA_PORT    LCD_PORT  /* port for 4bit data */
21 #define LCD_FIRST_DATA_BIT 3
22 #define LCD_RS_PORT      LCD_PORT  /* port for RS line */
23 #define LCD_RS_BIT       0
24 #define LCD_RW_PORT      LCD_PORT  /* port for RW line */
25 #define LCD_RW_BIT       1
26 #define LCD_E_PORT       LCD_PORT  /* port for Enable line */
27 #define LCD_E_BIT        2