diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 6df3f28ffd..66b1c682e7 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c @@ -325,6 +325,7 @@ static const unsigned char lcd_ascii[] = { }; #endif /* HAVE_NEW_CHARCELL_LCD */ +#ifndef SIMULATOR void lcd_clear_display(void) { int i; @@ -347,8 +348,14 @@ void lcd_define_pattern (int which,char *pattern,int length) for (i=0;i +#endif /* * All bitmaps have this format: @@ -681,6 +688,10 @@ void lcd_fontsize(char font, char *width, char *height) } } +#if defined(HAVE_LCD_CHARCELLS) && defined(SIMULATOR) +#include +#endif + #else /* no LCD defined, no code to use */ #endif diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index 7e0495cd99..21da38188a 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h @@ -63,7 +63,12 @@ extern void lcd_backlight(bool on); extern void lcd_puts(int x, int y, char *string); extern void lcd_define_pattern (int which,char *pattern,int length); -#elif HAVE_LCD_BITMAP +#endif +#if defined(HAVE_LCD_BITMAP) || defined(SIMULATOR) + +#if defined(HAVE_LCD_CHARCELLS) && defined(SIMULATOR) +#include +#endif #define LCD_WIDTH 112 /* Display width in pixels */ #define LCD_HEIGHT 64 /* Display height in pixels */ @@ -82,6 +87,10 @@ extern void lcd_clearpixel(int x, int y); void lcd_fontsize(char font, char *width, char *height); +#if defined(HAVE_LCD_CHARCELLS) && defined(SIMULATOR) +#include +#endif + #endif /* CHARCELLS / BITMAP */ #endif /* __LCD_H__ */