summaryrefslogtreecommitdiff
path: root/firmware/export/lcd-remote.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/lcd-remote.h')
-rw-r--r--firmware/export/lcd-remote.h79
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
35extern void lcd_remote_init(void); 36extern void lcd_remote_init(void);
36extern void lcd_remote_clear_display(void);
37extern void lcd_remote_backlight_on(void); 37extern void lcd_remote_backlight_on(void);
38extern void lcd_remote_backlight_off(void); 38extern void lcd_remote_backlight_off(void);
39extern void lcd_remote_stop_scroll(void);
40extern void lcd_remote_scroll_speed( int speed );
41extern void lcd_remote_scroll_delay( int ms );
42extern void lcd_remote_set_contrast(int val);
43extern int lcd_remote_default_contrast(void); 39extern int lcd_remote_default_contrast(void);
44extern void lcd_remote_update(void); 40extern void lcd_remote_set_contrast(int val);
45extern void lcd_remote_update_rect (int x_start, int y, 41
46 int width, int height); 42extern void lcd_remote_clear_display(void);
47
48extern void lcd_remote_puts(int x, int y, const unsigned char *string); 43extern void lcd_remote_puts(int x, int y, const unsigned char *string);
49extern void lcd_remote_puts_style(int x, int y, const unsigned char *string, 44extern void lcd_remote_puts_style(int x, int y, const unsigned char *string,
50 int style); 45 int style);
51 46extern void lcd_remote_putc(int x, int y, unsigned short ch);
52extern void lcd_remote_puts_scroll(int x, int y, const unsigned char* string ); 47extern void lcd_remote_stop_scroll(void);
48extern void lcd_remote_scroll_speed(int speed);
49extern void lcd_remote_scroll_delay(int ms);
50extern void lcd_remote_puts_scroll(int x, int y, const unsigned char* string);
53extern void lcd_remote_puts_scroll_style(int x, int y, const unsigned char* string, 51extern void lcd_remote_puts_scroll_style(int x, int y, const unsigned char* string,
54 int style); 52 int style);
55 53
56extern void lcd_remote_putc(int x, int y, unsigned short ch); 54extern void lcd_remote_update(void);
55extern void lcd_remote_update_rect int x_start, int y, int width, int height);
57 56
57/* Memory copy of display bitmap */
58extern unsigned char lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH];
59
60extern void lcd_remote_set_invert_display(bool yesno);
61extern void lcd_remote_set_flip(bool yesno);
62extern void lcd_remote_roll(int pixels);
58extern void lcd_remote_setmargins(int xmargin, int ymargin); 63extern void lcd_remote_setmargins(int xmargin, int ymargin);
59extern int lcd_remote_getxmargin(void); 64extern int lcd_remote_getxmargin(void);
60extern int lcd_remote_getymargin(void); 65extern int lcd_remote_getymargin(void);
61 66extern void lcd_remote_setfont(int font);
62/* 67extern int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h);
63 * Memory copy of display bitmap
64 */
65extern unsigned char lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH];
66
67extern void lcd_remote_bitmap (const unsigned char *src, int x, int y,
68 int nx, int ny, bool clear);
69extern void lcd_remote_clearrect (int x, int y, int nx, int ny);
70extern void lcd_remote_fillrect (int x, int y, int nx, int ny);
71extern void lcd_remote_invertrect (int x, int y, int nx, int ny);
72extern void lcd_remote_drawrect (int x, int y, int nx, int ny);
73extern void lcd_remote_invertrect (int x, int y, int nx, int ny);
74//extern void lcd_invertscroll(int x, int y);
75extern void lcd_remote_drawline( int x1, int y1, int x2, int y2 );
76extern void lcd_remote_clearline( int x1, int y1, int x2, int y2 );
77extern void lcd_remote_drawpixel(int x, int y); 68extern void lcd_remote_drawpixel(int x, int y);
78extern void lcd_remote_clearpixel(int x, int y); 69extern void lcd_remote_clearpixel(int x, int y);
79extern void lcd_remote_invertpixel(int x, int y); 70extern void lcd_remote_invertpixel(int x, int y);
80extern void lcd_remote_roll(int pixels); 71extern void lcd_remote_drawline(int x1, int y1, int x2, int y2);
81extern void lcd_remote_set_invert_display(bool yesno); 72extern void lcd_remote_clearline(int x1, int y1, int x2, int y2);
82extern void lcd_remote_set_flip(bool yesno); 73extern void lcd_remote_drawrect(int x, int y, int nx, int ny);
74extern void lcd_remote_clearrect(int x, int y, int nx, int ny);
75extern void lcd_remote_fillrect(int x, int y, int nx, int ny);
76extern void lcd_remote_invertrect(int x, int y, int nx, int ny);
77extern void lcd_remote_bitmap(const unsigned char *src, int x, int y,
78 int nx, int ny, bool clear);
79extern void lcd_remote_putsxy(int x, int y, const unsigned char *string);
80extern void lcd_remote_invertscroll(int x, int y);
83extern void lcd_remote_bidir_scroll(int threshold); 81extern void lcd_remote_bidir_scroll(int threshold);
84extern void lcd_remote_scroll_step(int pixels); 82extern void lcd_remote_scroll_step(int pixels);
85extern void lcd_remote_setfont(int font);
86extern void lcd_remote_putsxy(int x, int y, const unsigned char *string);
87extern 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