Subversion Repositories HomeAutomation

Rev

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

Rev 1187 Rev 1188
Line 24... Line 24...
24
{
24
{
25
    ///TODO: Initialize hardware etc here
25
    ///TODO: Initialize hardware etc here
26
    // Backlight
26
    // Backlight
27
    TCCR0A |= (1<<COM0A1)|(1<<WGM01)|(1<<WGM00);
27
    TCCR0A |= (1<<COM0A1)|(1<<WGM01)|(1<<WGM00);
28
    TCCR0B |= (1<<CS00);
28
    TCCR0B |= (1<<CS00);
29
    OCR0A = act_hd44780_INITIAL_BACKLIGHT;
29
    OCR0A = act_ks0108_INITIAL_BACKLIGHT;
30
    DDRD |= (1<<PD6);
30
    DDRD |= (1<<PD6);
31
 
31
 
32
    glcdPowerOn();
32
    glcdPowerOn();
33
 
33
 
34
    uint16_t ixa = 0;
34
    uint16_t ixa = 0;