diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-09-19 10:28:10 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-09-19 10:28:10 +0000 |
commit | 4da04f3bf37cadb7ec59d32573b68c9f50ace950 (patch) | |
tree | ce6c13cafd5807281c1d50040ce679bc83737523 /firmware/drivers/lcd.c | |
parent | 2c6393737189055076481d2e5e503237ef8bf41a (diff) | |
download | rockbox-4da04f3bf37cadb7ec59d32573b68c9f50ace950.tar.gz rockbox-4da04f3bf37cadb7ec59d32573b68c9f50ace950.zip |
Added Philipp Pertermanns oscillograph demo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2334 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd.c')
-rw-r--r-- | firmware/drivers/lcd.c | 17 |
1 files changed, 17 insertions, 0 deletions
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) | |||
1163 | } | 1163 | } |
1164 | } | 1164 | } |
1165 | 1165 | ||
1166 | #ifndef SIMULATOR | ||
1167 | #ifdef HAVE_LCD_BITMAP | ||
1168 | /** | ||
1169 | * Rolls up the lcd display by the specified amount of lines. | ||
1170 | * Lines that are rolled out over the top of the screen are | ||
1171 | * rolled in from the bottom again. This is a hardware | ||
1172 | * remapping only and all operations on the lcd are affected. | ||
1173 | * -> | ||
1174 | * @param int lines - The number of lines that are rolled. | ||
1175 | * The value must be 0 <= pixels < LCD_HEIGHT. | ||
1176 | */ | ||
1177 | void lcd_roll(int lines) | ||
1178 | { | ||
1179 | lcd_write(true, LCD_SET_DISPLAY_START_LINE | (lines & (LCD_HEIGHT-1))); | ||
1180 | } | ||
1181 | #endif | ||
1182 | #endif | ||
1166 | 1183 | ||
1167 | /* ----------------------------------------------------------------- | 1184 | /* ----------------------------------------------------------------- |
1168 | * local variables: | 1185 | * local variables: |