From 4da04f3bf37cadb7ec59d32573b68c9f50ace950 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 19 Sep 2002 10:28:10 +0000 Subject: Added Philipp Pertermanns oscillograph demo git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2334 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd.c | 17 +++++++++++++++++ firmware/drivers/lcd.h | 1 + 2 files changed, 18 insertions(+) (limited to 'firmware') diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 5240dfda42..8abc638175 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c @@ -1163,6 +1163,23 @@ static void scroll_thread(void) } } +#ifndef SIMULATOR +#ifdef HAVE_LCD_BITMAP +/** + * Rolls up the lcd display by the specified amount of lines. + * Lines that are rolled out over the top of the screen are + * rolled in from the bottom again. This is a hardware + * remapping only and all operations on the lcd are affected. + * -> + * @param int lines - The number of lines that are rolled. + * The value must be 0 <= pixels < LCD_HEIGHT. + */ +void lcd_roll(int lines) +{ + lcd_write(true, LCD_SET_DISPLAY_START_LINE | (lines & (LCD_HEIGHT-1))); +} +#endif +#endif /* ----------------------------------------------------------------- * local variables: diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index 23b3d75e76..8c89d4c057 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h @@ -116,6 +116,7 @@ extern void lcd_clearline( int x1, int y1, int x2, int y2 ); extern void lcd_drawpixel(int x, int y); extern void lcd_clearpixel(int x, int y); extern void lcd_invertpixel(int x, int y); +extern void lcd_roll(int pixels); #endif /* CHARCELLS / BITMAP */ -- cgit v1.2.3