diff options
Diffstat (limited to 'firmware/export/lcd-remote.h')
-rw-r--r-- | firmware/export/lcd-remote.h | 79 |
1 files changed, 33 insertions, 46 deletions
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h index 88b185ca93..58133fc7ce 100644 --- a/firmware/export/lcd-remote.h +++ b/firmware/export/lcd-remote.h | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2005 by Richard S. La Charité | 10 | * Copyright (C) 2005 by Richard S. La Charité |
11 | * | 11 | * |
12 | * All files in this archive are subject to the GNU General Public License. | 12 | * All files in this archive are subject to the GNU General Public License. |
13 | * See the file COPYING in the source tree root for full license agreement. | 13 | * See the file COPYING in the source tree root for full license agreement. |
@@ -25,74 +25,61 @@ | |||
25 | #include "config.h" | 25 | #include "config.h" |
26 | 26 | ||
27 | #ifdef HAVE_REMOTE_LCD | 27 | #ifdef HAVE_REMOTE_LCD |
28 | |||
28 | #define REMOTE_DRAW_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] |= (1<<((y)&7)) | 29 | #define REMOTE_DRAW_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] |= (1<<((y)&7)) |
29 | #define REMOTE_CLEAR_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] &= ~(1<<((y)&7)) | 30 | #define REMOTE_CLEAR_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] &= ~(1<<((y)&7)) |
30 | #define REMOTE_INVERT_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] ^= (1<<((y)&7)) | 31 | #define REMOTE_INVERT_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] ^= (1<<((y)&7)) |
31 | 32 | ||
32 | #define STYLE_DEFAULT 0 | 33 | #define STYLE_DEFAULT 0 |
33 | #define STYLE_INVERT 1 | 34 | #define STYLE_INVERT 1 |
34 | 35 | ||
35 | extern void lcd_remote_init(void); | 36 | extern void lcd_remote_init(void); |
36 | extern void lcd_remote_clear_display(void); | ||
37 | extern void lcd_remote_backlight_on(void); | 37 | extern void lcd_remote_backlight_on(void); |
38 | extern void lcd_remote_backlight_off(void); | 38 | extern void lcd_remote_backlight_off(void); |
39 | extern void lcd_remote_stop_scroll(void); | ||
40 | extern void lcd_remote_scroll_speed( int speed ); | ||
41 | extern void lcd_remote_scroll_delay( int ms ); | ||
42 | extern void lcd_remote_set_contrast(int val); | ||
43 | extern int lcd_remote_default_contrast(void); | 39 | extern int lcd_remote_default_contrast(void); |
44 | extern void lcd_remote_update(void); | 40 | extern void lcd_remote_set_contrast(int val); |
45 | extern void lcd_remote_update_rect (int x_start, int y, | 41 | |
46 | int width, int height); | 42 | extern void lcd_remote_clear_display(void); |
47 | |||
48 | extern void lcd_remote_puts(int x, int y, const unsigned char *string); | 43 | extern void lcd_remote_puts(int x, int y, const unsigned char *string); |
49 | extern void lcd_remote_puts_style(int x, int y, const unsigned char *string, | 44 | extern void lcd_remote_puts_style(int x, int y, const unsigned char *string, |
50 | int style); | 45 | int style); |
51 | 46 | extern void lcd_remote_putc(int x, int y, unsigned short ch); | |
52 | extern void lcd_remote_puts_scroll(int x, int y, const unsigned char* string ); | 47 | extern void lcd_remote_stop_scroll(void); |
48 | extern void lcd_remote_scroll_speed(int speed); | ||
49 | extern void lcd_remote_scroll_delay(int ms); | ||
50 | extern void lcd_remote_puts_scroll(int x, int y, const unsigned char* string); | ||
53 | extern void lcd_remote_puts_scroll_style(int x, int y, const unsigned char* string, | 51 | extern void lcd_remote_puts_scroll_style(int x, int y, const unsigned char* string, |
54 | int style); | 52 | int style); |
55 | 53 | ||
56 | extern void lcd_remote_putc(int x, int y, unsigned short ch); | 54 | extern void lcd_remote_update(void); |
55 | extern void lcd_remote_update_rect int x_start, int y, int width, int height); | ||
57 | 56 | ||
57 | /* Memory copy of display bitmap */ | ||
58 | extern unsigned char lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH]; | ||
59 | |||
60 | extern void lcd_remote_set_invert_display(bool yesno); | ||
61 | extern void lcd_remote_set_flip(bool yesno); | ||
62 | extern void lcd_remote_roll(int pixels); | ||
58 | extern void lcd_remote_setmargins(int xmargin, int ymargin); | 63 | extern void lcd_remote_setmargins(int xmargin, int ymargin); |
59 | extern int lcd_remote_getxmargin(void); | 64 | extern int lcd_remote_getxmargin(void); |
60 | extern int lcd_remote_getymargin(void); | 65 | extern int lcd_remote_getymargin(void); |
61 | 66 | extern void lcd_remote_setfont(int font); | |
62 | /* | 67 | extern int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h); |
63 | * Memory copy of display bitmap | ||
64 | */ | ||
65 | extern unsigned char lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH]; | ||
66 | |||
67 | extern void lcd_remote_bitmap (const unsigned char *src, int x, int y, | ||
68 | int nx, int ny, bool clear); | ||
69 | extern void lcd_remote_clearrect (int x, int y, int nx, int ny); | ||
70 | extern void lcd_remote_fillrect (int x, int y, int nx, int ny); | ||
71 | extern void lcd_remote_invertrect (int x, int y, int nx, int ny); | ||
72 | extern void lcd_remote_drawrect (int x, int y, int nx, int ny); | ||
73 | extern void lcd_remote_invertrect (int x, int y, int nx, int ny); | ||
74 | //extern void lcd_invertscroll(int x, int y); | ||
75 | extern void lcd_remote_drawline( int x1, int y1, int x2, int y2 ); | ||
76 | extern void lcd_remote_clearline( int x1, int y1, int x2, int y2 ); | ||
77 | extern void lcd_remote_drawpixel(int x, int y); | 68 | extern void lcd_remote_drawpixel(int x, int y); |
78 | extern void lcd_remote_clearpixel(int x, int y); | 69 | extern void lcd_remote_clearpixel(int x, int y); |
79 | extern void lcd_remote_invertpixel(int x, int y); | 70 | extern void lcd_remote_invertpixel(int x, int y); |
80 | extern void lcd_remote_roll(int pixels); | 71 | extern void lcd_remote_drawline(int x1, int y1, int x2, int y2); |
81 | extern void lcd_remote_set_invert_display(bool yesno); | 72 | extern void lcd_remote_clearline(int x1, int y1, int x2, int y2); |
82 | extern void lcd_remote_set_flip(bool yesno); | 73 | extern void lcd_remote_drawrect(int x, int y, int nx, int ny); |
74 | extern void lcd_remote_clearrect(int x, int y, int nx, int ny); | ||
75 | extern void lcd_remote_fillrect(int x, int y, int nx, int ny); | ||
76 | extern void lcd_remote_invertrect(int x, int y, int nx, int ny); | ||
77 | extern void lcd_remote_bitmap(const unsigned char *src, int x, int y, | ||
78 | int nx, int ny, bool clear); | ||
79 | extern void lcd_remote_putsxy(int x, int y, const unsigned char *string); | ||
80 | extern void lcd_remote_invertscroll(int x, int y); | ||
83 | extern void lcd_remote_bidir_scroll(int threshold); | 81 | extern void lcd_remote_bidir_scroll(int threshold); |
84 | extern void lcd_remote_scroll_step(int pixels); | 82 | extern void lcd_remote_scroll_step(int pixels); |
85 | extern void lcd_remote_setfont(int font); | ||
86 | extern void lcd_remote_putsxy(int x, int y, const unsigned char *string); | ||
87 | extern int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h); | ||
88 | |||
89 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | |||
95 | |||
96 | 83 | ||
97 | #endif | 84 | #endif |
98 | #endif | 85 | #endif |