|
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 'displayio' module. |
|
8 """ |
|
9 |
|
10 def release_displays(): |
|
11 pass |
|
12 |
|
13 class Bitmap(): |
|
14 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 |
|
24 |
|
25 class ColorConverter(): |
|
26 def __init__(self): |
|
27 pass |
|
28 |
|
29 def convert(self, color): |
|
30 pass |
|
31 |
|
32 class Display(): |
|
33 def __init__(self, display_bus, init_sequence, *, width, height, |
|
34 colstart=0, rowstart=0, rotation=0, color_depth=16, |
|
35 set_column_command=0x2a, set_row_command=0x2b, |
|
36 write_ram_command=0x2c, set_vertical_scroll=0, |
|
37 backlight_pin=None, brightness=1.0, auto_brightness=False, |
|
38 single_byte_bounds=False, data_as_commands=False): |
|
39 pass |
|
40 |
|
41 def show(self, group): |
|
42 pass |
|
43 |
|
44 def refresh_soon(self): |
|
45 pass |
|
46 |
|
47 def wait_for_frame(self): |
|
48 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 |
|
70 class FourWire(): |
|
71 def __init__(self, spi_bus, *, command, chip_select, reset=None): |
|
72 pass |
|
73 |
|
74 def send(self, command, data): |
|
75 pass |
|
76 |
|
77 class Group(): |
|
78 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 |
|
92 |
|
93 def append(self, layer): |
|
94 pass |
|
95 |
|
96 def insert(self, index, layer): |
|
97 pass |
|
98 |
|
99 def pop(self, i=-1): |
|
100 pass |
|
101 |
|
102 class OnDiskBitmap(): |
|
103 def __init__(self, file): |
|
104 pass |
|
105 |
|
106 @property |
|
107 def width(self): |
|
108 pass |
|
109 |
|
110 @property |
|
111 def height(self): |
|
112 pass |
|
113 |
|
114 class Palette(): |
|
115 def __init__(self, color_count): |
|
116 pass |
|
117 |
|
118 def make_transparent(self, palette_index): |
|
119 pass |
|
120 |
|
121 def make_opaque(self, palette_index): |
|
122 pass |
|
123 |
|
124 class ParallelBus(): |
|
125 def __init__(self, *, data0, command, chip_select, write, read, reset): |
|
126 pass |
|
127 |
|
128 def send(self, command, data): |
|
129 pass |
|
130 |
|
131 class Shape(): |
|
132 def __init__(self, width, height, *, mirror_x=False, mirror_y=False): |
|
133 pass |
|
134 |
|
135 def set_boundary(self, y, start_x, end_x): |
|
136 pass |
|
137 |
|
138 class TileGrid(): |
|
139 def __init__(self, bitmap, *, pixel_shader, width=1, height=1, |
|
140 tile_width=None, tile_height=None, default_tile=0, x=0, y=0): |
|
141 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 |