Rev 332 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 332 | Rev 348 | ||
|---|---|---|---|
| Line 87... | Line 87... | ||
| 87 | * Normally the four data lines should be mapped to bit 0..3 on one port, but it |
87 | * Normally the four data lines should be mapped to bit 0..3 on one port, but it |
| 88 | * is possible to connect these data lines in different order or even on different |
88 | * is possible to connect these data lines in different order or even on different |
| 89 | * ports by adapting the LCD_DATAx_PORT and LCD_DATAx_PIN definitions. |
89 | * ports by adapting the LCD_DATAx_PORT and LCD_DATAx_PIN definitions. |
| 90 | * |
90 | * |
| 91 | */ |
91 | */ |
| 92 | #define LCD_PORT |
92 | #define LCD_PORT PORTD /**< port for the LCD lines */ |
| 93 | #define LCD_DATA0_PORT |
93 | #define LCD_DATA0_PORT PORTC /**< port for 4bit data bit 0 */ |
| 94 | #define LCD_DATA1_PORT |
94 | #define LCD_DATA1_PORT PORTC /**< port for 4bit data bit 1 */ |
| 95 | #define LCD_DATA2_PORT LCD_PORT /**< port for 4bit data bit 2 */ |
95 | #define LCD_DATA2_PORT LCD_PORT /**< port for 4bit data bit 2 */ |
| 96 | #define LCD_DATA3_PORT LCD_PORT /**< port for 4bit data bit 3 */ |
96 | #define LCD_DATA3_PORT LCD_PORT /**< port for 4bit data bit 3 */ |
| 97 | #define LCD_DATA0_PIN |
97 | #define LCD_DATA0_PIN 4 /**< pin for 4bit data bit 0 */ |
| 98 | #define LCD_DATA1_PIN |
98 | #define LCD_DATA1_PIN 5 /**< pin for 4bit data bit 1 */ |
| 99 | #define LCD_DATA2_PIN |
99 | #define LCD_DATA2_PIN 6 /**< pin for 4bit data bit 2 */ |
| 100 | #define LCD_DATA3_PIN |
100 | #define LCD_DATA3_PIN 7 /**< pin for 4bit data bit 3 */ |
| 101 | #define LCD_RS_PORT LCD_PORT /**< port for RS line */ |
101 | #define LCD_RS_PORT LCD_PORT /**< port for RS line */ |
| 102 | #define LCD_RS_PIN |
102 | #define LCD_RS_PIN 0 /**< pin for RS line */ |
| 103 | #define LCD_RW_PORT LCD_PORT /**< port for RW line */ |
103 | #define LCD_RW_PORT LCD_PORT /**< port for RW line */ |
| 104 | #define LCD_RW_PIN |
104 | #define LCD_RW_PIN 1 /**< pin for RW line */ |
| 105 | #define LCD_E_PORT |
105 | #define LCD_E_PORT LCD_PORT /**< port for Enable line */ |
| 106 | #define LCD_E_PIN 4 /**< pin for Enable line */ |
106 | #define LCD_E_PIN 4 /**< pin for Enable line */ |
| 107 | 107 | ||
| 108 | #elif defined(__AVR_AT90S4414__) || defined(__AVR_AT90S8515__) || defined(__AVR_ATmega64__) || \ |
108 | #elif defined(__AVR_AT90S4414__) || defined(__AVR_AT90S8515__) || defined(__AVR_ATmega64__) || \ |
| 109 | defined(__AVR_ATmega8515__)|| defined(__AVR_ATmega103__) || defined(__AVR_ATmega128__) || \ |
109 | defined(__AVR_ATmega8515__)|| defined(__AVR_ATmega103__) || defined(__AVR_ATmega128__) || \ |
| 110 | defined(__AVR_ATmega161__) || defined(__AVR_ATmega162__) |
110 | defined(__AVR_ATmega161__) || defined(__AVR_ATmega162__) |