9 |
9 |
10 def release_displays(): |
10 def release_displays(): |
11 pass |
11 pass |
12 |
12 |
13 class Bitmap(): |
13 class Bitmap(): |
|
14 width = 0 |
|
15 height = 0 |
|
16 |
14 def __init__(self, width, height, value_count): |
17 def __init__(self, width, height, value_count): |
15 pass |
|
16 |
|
17 @property |
|
18 def width(self): |
|
19 pass |
|
20 |
|
21 @property |
|
22 def height(self): |
|
23 pass |
18 pass |
24 |
19 |
25 class ColorConverter(): |
20 class ColorConverter(): |
26 def __init__(self): |
21 def __init__(self): |
27 pass |
22 pass |
28 |
23 |
29 def convert(self, color): |
24 def convert(self, color): |
30 pass |
25 pass |
31 |
26 |
32 class Display(): |
27 class Display(): |
|
28 brightness = 0 |
|
29 auto_brightness = 0 |
|
30 width = 0 |
|
31 height = 0 |
|
32 bus = 0 |
|
33 |
33 def __init__(self, display_bus, init_sequence, *, width, height, |
34 def __init__(self, display_bus, init_sequence, *, width, height, |
34 colstart=0, rowstart=0, rotation=0, color_depth=16, |
35 colstart=0, rowstart=0, rotation=0, color_depth=16, |
35 set_column_command=0x2a, set_row_command=0x2b, |
36 set_column_command=0x2a, set_row_command=0x2b, |
36 write_ram_command=0x2c, set_vertical_scroll=0, |
37 write_ram_command=0x2c, set_vertical_scroll=0, |
37 backlight_pin=None, brightness=1.0, auto_brightness=False, |
38 backlight_pin=None, brightness=1.0, auto_brightness=False, |
44 def refresh_soon(self): |
45 def refresh_soon(self): |
45 pass |
46 pass |
46 |
47 |
47 def wait_for_frame(self): |
48 def wait_for_frame(self): |
48 pass |
49 pass |
49 |
|
50 @property |
|
51 def brightness(self): |
|
52 pass |
|
53 |
|
54 @property |
|
55 def auto_brightness(self): |
|
56 pass |
|
57 |
|
58 @property |
|
59 def width(self): |
|
60 pass |
|
61 |
|
62 @property |
|
63 def height(self): |
|
64 pass |
|
65 |
|
66 @property |
|
67 def bus(self): |
|
68 pass |
|
69 |
50 |
70 class FourWire(): |
51 class FourWire(): |
71 def __init__(self, spi_bus, *, command, chip_select, reset=None): |
52 def __init__(self, spi_bus, *, command, chip_select, reset=None): |
72 pass |
53 pass |
73 |
54 |
74 def send(self, command, data): |
55 def send(self, command, data): |
75 pass |
56 pass |
76 |
57 |
77 class Group(): |
58 class Group(): |
|
59 scale = 0 |
|
60 x = 0 |
|
61 y = 0 |
|
62 |
78 def __init__(self, *, max_size=4, scale=1, x=0, y=0): |
63 def __init__(self, *, max_size=4, scale=1, x=0, y=0): |
79 pass |
|
80 |
|
81 @property |
|
82 def scale(self): |
|
83 pass |
|
84 |
|
85 @property |
|
86 def x(self): |
|
87 pass |
|
88 |
|
89 @property |
|
90 def y(self): |
|
91 pass |
64 pass |
92 |
65 |
93 def append(self, layer): |
66 def append(self, layer): |
94 pass |
67 pass |
95 |
68 |
134 |
102 |
135 def set_boundary(self, y, start_x, end_x): |
103 def set_boundary(self, y, start_x, end_x): |
136 pass |
104 pass |
137 |
105 |
138 class TileGrid(): |
106 class TileGrid(): |
|
107 x = 0 |
|
108 y = 0 |
|
109 pixel_shader = 0 |
|
110 |
139 def __init__(self, bitmap, *, pixel_shader, width=1, height=1, |
111 def __init__(self, bitmap, *, pixel_shader, width=1, height=1, |
140 tile_width=None, tile_height=None, default_tile=0, x=0, y=0): |
112 tile_width=None, tile_height=None, default_tile=0, x=0, y=0): |
141 pass |
113 pass |
142 |
|
143 @property |
|
144 def x(self): |
|
145 pass |
|
146 |
|
147 @property |
|
148 def y(self): |
|
149 pass |
|
150 |
|
151 @property |
|
152 def pixel_shader(self): |
|
153 pass |
|