|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module containing stubs for API generation of the def 'lcd160cr' module. |
|
8 """ |
|
9 |
|
10 PORTRAIT = 0 |
|
11 LANDSCAPE = 0 |
|
12 PORTRAIT_UPSIDEDOWN = 0 |
|
13 LANDSCAPE_UPSIDEDOWN = 0 |
|
14 STARTUP_DECO_NONE = 0 |
|
15 STARTUP_DECO_MLOGO = 0 |
|
16 STARTUP_DECO_INFO = 0 |
|
17 |
|
18 class LCD160CR(): |
|
19 def __init__(self, connect=None, *, pwr=None, i2c=None, spi=None, |
|
20 i2c_addr=98): |
|
21 self.w = 0 |
|
22 self.h = 0 |
|
23 |
|
24 def set_power(self, on): |
|
25 pass |
|
26 |
|
27 def set_orient(self, orient): |
|
28 pass |
|
29 |
|
30 def set_brightness(self, value): |
|
31 pass |
|
32 |
|
33 def set_i2c_addr(self, addr): |
|
34 pass |
|
35 |
|
36 def set_uart_baudrate(self, baudrate): |
|
37 pass |
|
38 |
|
39 def set_startup_deco(self, value): |
|
40 pass |
|
41 |
|
42 def save_to_flash(self): |
|
43 pass |
|
44 |
|
45 def set_pixel(self, x, y, c): |
|
46 pass |
|
47 |
|
48 def get_pixel(self, x, y): |
|
49 pass |
|
50 |
|
51 def get_line(self, x, y, buf): |
|
52 pass |
|
53 |
|
54 def screen_dump(self, buf, x=0, y=0, w=None, h=None): |
|
55 pass |
|
56 |
|
57 def screen_load(self, buf): |
|
58 pass |
|
59 |
|
60 def set_pos(self, x, y): |
|
61 pass |
|
62 |
|
63 def set_text_color(self, fg, bg): |
|
64 pass |
|
65 |
|
66 def set_font(self, font, scale=0, bold=0, trans=0, scroll=0): |
|
67 pass |
|
68 |
|
69 def write(self, s): |
|
70 pass |
|
71 |
|
72 def set_pen(self, line, fill): |
|
73 pass |
|
74 |
|
75 def erase(self): |
|
76 pass |
|
77 |
|
78 def dot(self, x, y): |
|
79 pass |
|
80 |
|
81 def rect(self, x, y, w, h): |
|
82 pass |
|
83 |
|
84 def rect_outline(self, x, y, w, h): |
|
85 pass |
|
86 |
|
87 def rect_interior(self, x, y, w, h): |
|
88 pass |
|
89 |
|
90 def line(self, x1, y1, x2, y2): |
|
91 pass |
|
92 |
|
93 def dot_no_clip(self, x, y): |
|
94 pass |
|
95 |
|
96 def rect_no_clip(self, x, y, w, h): |
|
97 pass |
|
98 |
|
99 def rect_outline_no_clip(self, x, y, w, h): |
|
100 pass |
|
101 |
|
102 def rect_interior_no_clip(self, x, y, w, h): |
|
103 pass |
|
104 |
|
105 def line_no_clip(self, x1, y1, x2, y2): |
|
106 pass |
|
107 |
|
108 def poly_dot(self, data): |
|
109 pass |
|
110 |
|
111 def poly_line(self, data): |
|
112 pass |
|
113 |
|
114 def touch_config(self, calib=False, save=False, irq=None): |
|
115 pass |
|
116 |
|
117 def is_touched(self): |
|
118 pass |
|
119 |
|
120 def get_touch(self): |
|
121 pass |
|
122 |
|
123 def set_spi_win(self, x, y, w, h): |
|
124 pass |
|
125 |
|
126 def fast_spi(self, flush=True): |
|
127 pass |
|
128 |
|
129 def show_framebuf(self, buf): |
|
130 pass |
|
131 |
|
132 def set_scroll(self, on): |
|
133 pass |
|
134 |
|
135 def set_scroll_win(self, win, x=-1, y=0, w=0, h=0, vec=0, pat=0, |
|
136 fill=0x07e0, color=0): |
|
137 pass |
|
138 |
|
139 def set_scroll_win_param(self, win, param, value): |
|
140 pass |
|
141 |
|
142 def set_scroll_buf(self, s): |
|
143 pass |
|
144 |
|
145 def jpeg(self, buf): |
|
146 pass |
|
147 |
|
148 def jpeg_start(self, total_len): |
|
149 pass |
|
150 |
|
151 def jpeg_data(self, buf): |
|
152 pass |
|
153 |
|
154 def feed_wdt(self): |
|
155 pass |
|
156 |
|
157 def reset(self): |
|
158 pass |
|
159 |
|
160 @staticmethod |
|
161 def rgb(r, g, b): |
|
162 pass |