-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathledbar_constants.py
More file actions
209 lines (206 loc) · 8.19 KB
/
ledbar_constants.py
File metadata and controls
209 lines (206 loc) · 8.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
FADE_OPTIONS = [{
'name': 'cyclic',
'long_name': 'Cycle',
'description': 'Cycles through all available options.',
}, {
'name': 'immediate',
'long_name': 'Immediate',
'description': 'Shows the text immediately.',
}, {
'name': 'open_right',
'long_name': 'Scroll in from right',
'description': 'Scrolls the text in from the right.',
}, {
'name': 'open_left',
'long_name': 'Scroll in from left',
'description': 'Scrolls the text in from the left.',
}, {
'name': 'open_from_center',
'long_name': 'Open from center',
'description': 'Scrolls the text in from the center to the edges.',
}, {
'name': 'open_to_center',
'long_name': 'Open to center',
'description': 'Scrolls the text in from the edges to the center.',
}, {
'name': 'cover_from_center',
'long_name': 'Cover from center',
'description': 'Shows the text from the center to the edges.',
}, {
'name': 'cover_from_right',
'long_name': 'Cover from right',
'description': 'Shows the text from the right to the left.',
}, {
'name': 'cover_from_left',
'long_name': 'Cover from left',
'description': 'Shows the text from the left to the right.',
}, {
'name': 'cover_to_center',
'long_name': 'Cover to center',
'description': 'Shows the text from the edges to the center.',
}, {
'name': 'scroll_up',
'long_name': 'Scroll up',
'description': 'Scrolls the text up from below.',
}, {
'name': 'scroll_down',
'long_name': 'Scroll down',
'description': 'Scrolls the text down from above.',
}, {
'name': 'interlace_center',
'long_name': 'Scroll interlace',
'description': 'Scrolls one half of the rows in from the left, one half from the right, '
'line by line.',
}, {
'name': 'interlace_cover',
'long_name': 'Cover interlace',
'description': 'Shows one half of the rows from the left, one half from the right, '
'line by line.',
}, {
'name': 'cover_up',
'long_name': 'Cover upwards',
'description': 'Show text line by line from the bottom upwards.',
}, {
'name': 'cover_down',
'long_name': 'Cover downwards',
'description': 'Show text line by line from the top downwards.',
}, {
'name': 'scan_line',
'long_name': 'Scanline',
'description': 'Let a scanline draw the text pixel by pixel.',
}, {
'name': 'explode',
'long_name': 'Explode',
'description': 'Show the text through an explosion on parts of the board.',
}, {
'name': 'pacman',
'long_name': 'Pacman',
'description': 'Let pacman eat the panel to uncover the text.',
}, {
'name': 'fall_stack',
'long_name': 'Falling stack',
'description': 'Let the text fall in from the top.',
}, {
'name': 'shoot',
'long_name': 'Shoot',
'description': 'Shoot the text in from the right, a few pixels at a time.',
}, {
'name': 'flash',
'long_name': 'Flash',
'description': 'Flash the text rapidly.',
}, {
'name': 'random',
'long_name': 'Random transition',
'description': 'Show random pixels of the text at random.',
}, {
'name': 'slide_in',
'long_name': 'Slide letters in',
'description': 'Slide each letter in one by one from the right.',
}, {
'name': 'auto',
'long_name': 'Automatic',
'description': 'Determine the fade effect automatically (similar to <code>"cyclic"</code>).',
}
]
SPEED_OPTIONS = [
{'name': 'default', 'long_name': 'Default (3)', 'description': "The default speed (same as <code>speed_3</code>)."},
{'name': 'speed_1', 'long_name': 'Fastest (1)', 'description': "Fastest"},
{'name': 'speed_2', 'long_name': '2', 'description': ""},
{'name': 'speed_3', 'long_name': '3 (default)', 'description': "Default"},
{'name': 'speed_4', 'long_name': '4 (do not use)', 'description': "<i>unreadable due to flickering, do not use</i>"},
{'name': 'speed_5', 'long_name': '5 (do not use)', 'description': "<i>unreadable due to flickering, do not use</i>"},
{'name': 'speed_6', 'long_name': '6 (do not use)', 'description': "<i>unreadable due to flickering, do not use</i>"},
{'name': 'speed_7', 'long_name': '7 (do not use)', 'description': "<i>unreadable due to flickering, do not use</i>"},
{'name': 'speed_8', 'long_name': 'Slowest (8)', 'description': "Slowest"},
]
COLOR_OPTIONS = [
{
'name': 'red',
'long_name': 'Red',
"description": "<span class='color'><code class='red'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'bright_red',
'long_name': 'Bright Red',
"description": "<span class='color'><code class='bright_red'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'orange',
'long_name': 'Orange',
"description": "<span class='color'><code class='orange'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'bright_orange',
'long_name': 'Bright Orange',
"description": "<span class='color'><code class='bright_orange'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'yellow',
'long_name': 'Yellow',
"description": "<span class='color'><code class='yellow'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'bright_yellow',
'long_name': 'Bright Yellow',
"description": "<span class='color'><code class='bright_yellow'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'green',
'long_name': 'Green',
"description": "<span class='color'><code class='green'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'bright_green',
'long_name': 'Bright Green',
"description": "<span class='color'><code class='bright_green'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'layer_mix_rainbow',
'long_name': 'Rainbow',
"description": "<span class='color'><code class='layer_mix_rainbow'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'bright_layer_mix_rainbow',
'long_name': 'Bright Rainbow',
"description": "<span class='color'><code class='bright_layer_mix_rainbow'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'vertical_mix',
'long_name': 'Vertical Mix',
"description": "<span class='color'><code class='vertical_mix'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'sawtooth_mix',
'long_name': 'Sawtooth',
"description": "<span class='color'><code class='sawtooth_mix'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'green_on_red',
'long_name': 'Green-on-red',
"description": "<span class='color'><code class='green_on_red'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'red_on_green',
'long_name': 'Red-on-green',
"description": "<span class='color'><code class='red_on_green'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'orange_on_red',
'long_name': 'Orange-on-red',
"description": "<span class='color'><code class='orange_on_red'>Lorem ipsum dolor sit amet.</code></span>"
},
{
'name': 'yellow_on_green',
'long_name': 'Yellow-on-green',
"description": "<span class='color'><code class='yellow_on_green'>Lorem ipsum dolor sit amet.</code></span>"
},
]
FONT_OPTIONS = [
{'name': 'short', 'long_name': 'Short (5x6)', 'description': ""},
{'name': 'short_wide', 'long_name': 'Short and Wide (5x11)', 'description': ""},
{'name': 'default', 'long_name': 'Default (7x6)', 'description': ""},
{'name': 'wide', 'long_name': 'Wide (7x11)', 'description': ""},
{'name': 'serif', 'long_name': 'Serif (7x9)', 'description': ""},
{'name': 'extra_wide', 'long_name': 'Extra Wide (7x17)', 'description': ""},
{'name': 'small', 'long_name': 'Very Small', 'description': ""},
]