Rev 1155 | Rev 1427 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1155 | Rev 1356 | ||
|---|---|---|---|
| Line 11... | Line 11... | ||
| 11 | TCCR0A |= (1<<COM0B1)|(1<<WGM01)|(1<<WGM00); |
11 | TCCR0A |= (1<<COM0B1)|(1<<WGM01)|(1<<WGM00); |
| 12 | TCCR0B |= (1<<CS00); |
12 | TCCR0B |= (1<<CS00); |
| 13 | OCR0B = act_hd44780_INITIAL_CONTRAST; |
13 | OCR0B = act_hd44780_INITIAL_CONTRAST; |
| 14 | DDRD |= (1<<PD5); |
14 | DDRD |= (1<<PD5); |
| 15 | 15 | ||
| 16 | - | ||
| - | 16 | #if (act_hd44780_TYPE==0) |
|
| 17 | // Backlight |
17 | // Backlight |
| 18 | TCCR0A |= (1<<COM0A1)|(1<<WGM01)|(1<<WGM00); |
18 | TCCR0A |= (1<<COM0A1)|(1<<WGM01)|(1<<WGM00); |
| 19 | TCCR0B |= (1<<CS00); |
19 | TCCR0B |= (1<<CS00); |
| 20 | OCR0A = act_hd44780_INITIAL_BACKLIGHT; |
20 | OCR0A = act_hd44780_INITIAL_BACKLIGHT; |
| 21 | DDRD |= (1<<PD6); |
21 | DDRD |= (1<<PD6); |
| 22 | 22 | #endif |
|
| 23 | 23 | ||
| 24 | lcd_init(LCD_DISP_ON); |
24 | lcd_init(LCD_DISP_ON); |
| 25 | lcd_clrscr(); |
25 | lcd_clrscr(); |
| 26 | lcd_puts("HomeAutomation\n"); |
26 | lcd_puts("HomeAutomation\n"); |
| 27 | lcd_puts("HD44780-module\n"); |
27 | lcd_puts("HD44780-module\n"); |