Subversion Repositories HomeAutomation

Rev

Rev 869 | Rev 944 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 869 Rev 928
Line 4... Line 4...
4
uint8_t Command = 0;
4
uint8_t Command = 0;
5
 
5
 
6
void act_hd44780_Init(void)
6
void act_hd44780_Init(void)
7
{
7
{
8
    ///FIXME: What is this, this needs to be more clear by far....
8
    ///FIXME: What is this, this needs to be more clear by far....
-
 
9
 
-
 
10
    // Contrast
-
 
11
    TCCR0A |= (1<<COM0B1)|(1<<WGM01)|(1<<WGM00);
-
 
12
    TCCR0B |= (1<<CS00);
-
 
13
    OCR0B = 0x10;
-
 
14
    DDRD |= (1<<DDD5);
-
 
15
 
9
 
16
 
10
    // Backlight
17
    // Backlight
11
    TCCR1A |= (1<<COM1A1)|(1<<WGM11);
18
    TCCR1A |= (1<<COM1A1)|(1<<WGM11);
12
    TCCR1B |= (1<<WGM13)|(1<<WGM12)|(1<<CS10);
19
    TCCR1B |= (1<<WGM13)|(1<<WGM12)|(1<<CS10);
13
    ICR1 = 0xFF; // Make it 8 bits
20
    ICR1 = 0xFF; // Make it 8 bits