summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd.c')
-rw-r--r--firmware/drivers/lcd.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index 55a3160ed5..67d6f5e75a 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -374,9 +374,18 @@ void lcd_double_height(bool on)
374 lcd_write(true,on?9:8); 374 lcd_write(true,on?9:8);
375} 375}
376 376
377#endif 377#endif /* !SIMULATOR */
378
379#endif /* HAVE_LCD_CHARCELLS */
378 380
381#if defined(HAVE_LCD_CHARCELLS) || defined(SIMULATOR) /* not BITMAP */
382void lcd_init (void)
383{
384 create_thread(scroll_thread, scroll_stack, sizeof(scroll_stack));
385}
379#endif 386#endif
387
388
380#if defined(HAVE_LCD_BITMAP) || defined(SIMULATOR) /* not CHARCELLS */ 389#if defined(HAVE_LCD_BITMAP) || defined(SIMULATOR) /* not CHARCELLS */
381 390
382/* 391/*
@@ -417,13 +426,7 @@ static unsigned char ones[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
417static char fonts[] = { 6,8,12 }; 426static char fonts[] = { 6,8,12 };
418static char fontheight[] = { 8,12,16 }; 427static char fontheight[] = { 8,12,16 };
419 428
420#ifdef SIMULATOR 429#ifndef SIMULATOR
421
422void lcd_init (void)
423{
424 create_thread(scroll_thread, scroll_stack, sizeof(scroll_stack));
425}
426#else
427 430
428/* 431/*
429 * Initialize LCD 432 * Initialize LCD