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.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index 5b8303114c..f82ceb44a1 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -100,6 +100,23 @@
100 100
101/*** generic code ***/ 101/*** generic code ***/
102 102
103struct scrollinfo {
104 char text[128];
105 int textlen;
106 char offset;
107 char xpos;
108 char startx;
109 char starty;
110 char space;
111};
112
113static void scroll_thread(void);
114static char scroll_stack[0x100];
115static char scroll_speed = 10; /* updates per second */
116
117static struct scrollinfo scroll; /* only one scroll line at the moment */
118static bool run_scroll = false;
119
103#ifndef SIMULATOR 120#ifndef SIMULATOR
104/* 121/*
105 * About /CS,DS,SC,SD 122 * About /CS,DS,SC,SD
@@ -746,24 +763,6 @@ void lcd_getfontsize(unsigned int font, int *width, int *height)
746/* no LCD defined, no code to use */ 763/* no LCD defined, no code to use */
747#endif 764#endif
748 765
749
750struct scrollinfo {
751 char text[128];
752 int textlen;
753 char offset;
754 char xpos;
755 char startx;
756 char starty;
757 char space;
758};
759
760static void scroll_thread(void);
761static char scroll_stack[0x100];
762static char scroll_speed = 10; /* updates per second */
763
764static struct scrollinfo scroll; /* only one scroll line at the moment */
765static bool run_scroll = false;
766
767void lcd_puts_scroll(int x, int y, char* string ) 766void lcd_puts_scroll(int x, int y, char* string )
768{ 767{
769 struct scrollinfo* s = &scroll; 768 struct scrollinfo* s = &scroll;