diff options
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: |