Subversion Repositories HomeAutomation

Rev

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

Rev 2016 Rev 2024
Line 317... Line 317...
317
                messageBuf[1] = (uint8_t)((address >> 8) & 0xff);       // Starting address in memory
317
                messageBuf[1] = (uint8_t)((address >> 8) & 0xff);       // Starting address in memory
318
                messageBuf[2] = (uint8_t)(address & 0xff);       // Starting address in memory
318
                messageBuf[2] = (uint8_t)(address & 0xff);       // Starting address in memory
319
            }
319
            }
320
        }
320
        }
321
    }
321
    }
-
 
322
}
-
 
323
#endif
-
 
324
 
-
 
325
#if GRAPHICS_DRIVER==DOTMATRIX
-
 
326
/* Refresh display */
-
 
327
void act_ks0108_Refresh(uint8_t timer)
-
 
328
{
-
 
329
    glcdRefresh();
322
}
330
}
323
#endif
331
#endif
324
 
332
 
325
void act_ks0108_Init(void)
333
void act_ks0108_Init(void)
326
{
334
{
Line 336... Line 344...
336
    TCCR0B |= (1<<CS00);
344
    TCCR0B |= (1<<CS00);
337
    OCR0B = 0xff-act_ks0108_INITIAL_BACKLIGHT;
345
    OCR0B = 0xff-act_ks0108_INITIAL_BACKLIGHT;
338
    DDRD |= (1<<PD5);
346
    DDRD |= (1<<PD5);
339
   
347
   
340
    /* Start timer for row management */
348
    /* Start timer for row management */
-
 
349
    // TODO polled from process() or callback??
341
    Timer_SetTimeout(act_ks0108_DOTMATRIX_TIMER, 1, TimerTypeFreeRunning, &glcdRefresh);   
350
    Timer_SetTimeout(act_ks0108_DOTMATRIX_TIMER, 1, TimerTypeFreeRunning, &act_ks0108_Refresh);
342
#endif
351
#endif
343
 
352
 
344
 
353
 
345
#if act_ks0108_USE_EXTERNAL_EEPROM==1
354
#if act_ks0108_USE_EXTERNAL_EEPROM==1
346
    TWI_Master_Initialise();
355
    TWI_Master_Initialise();