Przeglądaj źródła

pre-gen image for pico

Thomas Buck 1 rok temu
rodzic
commit
ff206b0c00
4 zmienionych plików z 1782 dodań i 684 usunięć
  1. 0
    1
      .gitignore
  2. 11
    683
      camp_pico.py
  3. 1092
    0
      img_tmp.py
  4. 679
    0
      qr_tmp.py

+ 0
- 1
.gitignore Wyświetl plik

@@ -1,2 +1 @@
1 1
 __pycache__
2
-qr_tmp.txt

+ 11
- 683
camp_pico.py Wyświetl plik

@@ -10,685 +10,9 @@
10 10
 camp_pink = (251, 72, 196)
11 11
 camp_green = (63, 255, 33)
12 12
 
13
-# QR code image for "http://ubabot.frubar.net"
14
-# size:25x25
15
-qr_data = [
16
-    [
17
-        (255, 255, 255),
18
-        (255, 255, 255),
19
-        (255, 255, 255),
20
-        (255, 255, 255),
21
-        (255, 255, 255),
22
-        (255, 255, 255),
23
-        (255, 255, 255),
24
-        (0, 0, 0),
25
-        (255, 255, 255),
26
-        (255, 255, 255),
27
-        (0, 0, 0),
28
-        (255, 255, 255),
29
-        (0, 0, 0),
30
-        (255, 255, 255),
31
-        (255, 255, 255),
32
-        (255, 255, 255),
33
-        (255, 255, 255),
34
-        (0, 0, 0),
35
-        (255, 255, 255),
36
-        (255, 255, 255),
37
-        (255, 255, 255),
38
-        (255, 255, 255),
39
-        (255, 255, 255),
40
-        (255, 255, 255),
41
-        (255, 255, 255),
42
-    ],
43
-    [
44
-        (255, 255, 255),
45
-        (0, 0, 0),
46
-        (0, 0, 0),
47
-        (0, 0, 0),
48
-        (0, 0, 0),
49
-        (0, 0, 0),
50
-        (255, 255, 255),
51
-        (0, 0, 0),
52
-        (0, 0, 0),
53
-        (0, 0, 0),
54
-        (0, 0, 0),
55
-        (0, 0, 0),
56
-        (0, 0, 0),
57
-        (0, 0, 0),
58
-        (255, 255, 255),
59
-        (0, 0, 0),
60
-        (255, 255, 255),
61
-        (0, 0, 0),
62
-        (255, 255, 255),
63
-        (0, 0, 0),
64
-        (0, 0, 0),
65
-        (0, 0, 0),
66
-        (0, 0, 0),
67
-        (0, 0, 0),
68
-        (255, 255, 255),
69
-    ],
70
-    [
71
-        (255, 255, 255),
72
-        (0, 0, 0),
73
-        (255, 255, 255),
74
-        (255, 255, 255),
75
-        (255, 255, 255),
76
-        (0, 0, 0),
77
-        (255, 255, 255),
78
-        (0, 0, 0),
79
-        (0, 0, 0),
80
-        (255, 255, 255),
81
-        (255, 255, 255),
82
-        (255, 255, 255),
83
-        (255, 255, 255),
84
-        (0, 0, 0),
85
-        (0, 0, 0),
86
-        (255, 255, 255),
87
-        (0, 0, 0),
88
-        (0, 0, 0),
89
-        (255, 255, 255),
90
-        (0, 0, 0),
91
-        (255, 255, 255),
92
-        (255, 255, 255),
93
-        (255, 255, 255),
94
-        (0, 0, 0),
95
-        (255, 255, 255),
96
-    ],
97
-    [
98
-        (255, 255, 255),
99
-        (0, 0, 0),
100
-        (255, 255, 255),
101
-        (255, 255, 255),
102
-        (255, 255, 255),
103
-        (0, 0, 0),
104
-        (255, 255, 255),
105
-        (0, 0, 0),
106
-        (255, 255, 255),
107
-        (0, 0, 0),
108
-        (255, 255, 255),
109
-        (255, 255, 255),
110
-        (255, 255, 255),
111
-        (255, 255, 255),
112
-        (255, 255, 255),
113
-        (255, 255, 255),
114
-        (0, 0, 0),
115
-        (0, 0, 0),
116
-        (255, 255, 255),
117
-        (0, 0, 0),
118
-        (255, 255, 255),
119
-        (255, 255, 255),
120
-        (255, 255, 255),
121
-        (0, 0, 0),
122
-        (255, 255, 255),
123
-    ],
124
-    [
125
-        (255, 255, 255),
126
-        (0, 0, 0),
127
-        (255, 255, 255),
128
-        (255, 255, 255),
129
-        (255, 255, 255),
130
-        (0, 0, 0),
131
-        (255, 255, 255),
132
-        (0, 0, 0),
133
-        (255, 255, 255),
134
-        (0, 0, 0),
135
-        (255, 255, 255),
136
-        (0, 0, 0),
137
-        (0, 0, 0),
138
-        (255, 255, 255),
139
-        (255, 255, 255),
140
-        (255, 255, 255),
141
-        (255, 255, 255),
142
-        (0, 0, 0),
143
-        (255, 255, 255),
144
-        (0, 0, 0),
145
-        (255, 255, 255),
146
-        (255, 255, 255),
147
-        (255, 255, 255),
148
-        (0, 0, 0),
149
-        (255, 255, 255),
150
-    ],
151
-    [
152
-        (255, 255, 255),
153
-        (0, 0, 0),
154
-        (0, 0, 0),
155
-        (0, 0, 0),
156
-        (0, 0, 0),
157
-        (0, 0, 0),
158
-        (255, 255, 255),
159
-        (0, 0, 0),
160
-        (255, 255, 255),
161
-        (255, 255, 255),
162
-        (255, 255, 255),
163
-        (255, 255, 255),
164
-        (0, 0, 0),
165
-        (255, 255, 255),
166
-        (255, 255, 255),
167
-        (0, 0, 0),
168
-        (0, 0, 0),
169
-        (0, 0, 0),
170
-        (255, 255, 255),
171
-        (0, 0, 0),
172
-        (0, 0, 0),
173
-        (0, 0, 0),
174
-        (0, 0, 0),
175
-        (0, 0, 0),
176
-        (255, 255, 255),
177
-    ],
178
-    [
179
-        (255, 255, 255),
180
-        (255, 255, 255),
181
-        (255, 255, 255),
182
-        (255, 255, 255),
183
-        (255, 255, 255),
184
-        (255, 255, 255),
185
-        (255, 255, 255),
186
-        (0, 0, 0),
187
-        (255, 255, 255),
188
-        (0, 0, 0),
189
-        (255, 255, 255),
190
-        (0, 0, 0),
191
-        (255, 255, 255),
192
-        (0, 0, 0),
193
-        (255, 255, 255),
194
-        (0, 0, 0),
195
-        (255, 255, 255),
196
-        (0, 0, 0),
197
-        (255, 255, 255),
198
-        (255, 255, 255),
199
-        (255, 255, 255),
200
-        (255, 255, 255),
201
-        (255, 255, 255),
202
-        (255, 255, 255),
203
-        (255, 255, 255),
204
-    ],
205
-    [
206
-        (0, 0, 0),
207
-        (0, 0, 0),
208
-        (0, 0, 0),
209
-        (0, 0, 0),
210
-        (0, 0, 0),
211
-        (0, 0, 0),
212
-        (0, 0, 0),
213
-        (0, 0, 0),
214
-        (255, 255, 255),
215
-        (0, 0, 0),
216
-        (255, 255, 255),
217
-        (0, 0, 0),
218
-        (255, 255, 255),
219
-        (0, 0, 0),
220
-        (255, 255, 255),
221
-        (0, 0, 0),
222
-        (255, 255, 255),
223
-        (0, 0, 0),
224
-        (0, 0, 0),
225
-        (0, 0, 0),
226
-        (0, 0, 0),
227
-        (0, 0, 0),
228
-        (0, 0, 0),
229
-        (0, 0, 0),
230
-        (0, 0, 0),
231
-    ],
232
-    [
233
-        (255, 255, 255),
234
-        (0, 0, 0),
235
-        (0, 0, 0),
236
-        (0, 0, 0),
237
-        (255, 255, 255),
238
-        (0, 0, 0),
239
-        (255, 255, 255),
240
-        (255, 255, 255),
241
-        (255, 255, 255),
242
-        (255, 255, 255),
243
-        (0, 0, 0),
244
-        (0, 0, 0),
245
-        (255, 255, 255),
246
-        (0, 0, 0),
247
-        (0, 0, 0),
248
-        (0, 0, 0),
249
-        (255, 255, 255),
250
-        (255, 255, 255),
251
-        (255, 255, 255),
252
-        (255, 255, 255),
253
-        (255, 255, 255),
254
-        (255, 255, 255),
255
-        (0, 0, 0),
256
-        (0, 0, 0),
257
-        (255, 255, 255),
258
-    ],
259
-    [
260
-        (255, 255, 255),
261
-        (255, 255, 255),
262
-        (0, 0, 0),
263
-        (0, 0, 0),
264
-        (0, 0, 0),
265
-        (255, 255, 255),
266
-        (0, 0, 0),
267
-        (255, 255, 255),
268
-        (255, 255, 255),
269
-        (255, 255, 255),
270
-        (0, 0, 0),
271
-        (255, 255, 255),
272
-        (255, 255, 255),
273
-        (255, 255, 255),
274
-        (0, 0, 0),
275
-        (255, 255, 255),
276
-        (255, 255, 255),
277
-        (0, 0, 0),
278
-        (0, 0, 0),
279
-        (0, 0, 0),
280
-        (255, 255, 255),
281
-        (255, 255, 255),
282
-        (0, 0, 0),
283
-        (255, 255, 255),
284
-        (0, 0, 0),
285
-    ],
286
-    [
287
-        (0, 0, 0),
288
-        (0, 0, 0),
289
-        (0, 0, 0),
290
-        (255, 255, 255),
291
-        (0, 0, 0),
292
-        (255, 255, 255),
293
-        (255, 255, 255),
294
-        (0, 0, 0),
295
-        (255, 255, 255),
296
-        (0, 0, 0),
297
-        (255, 255, 255),
298
-        (255, 255, 255),
299
-        (0, 0, 0),
300
-        (255, 255, 255),
301
-        (0, 0, 0),
302
-        (255, 255, 255),
303
-        (255, 255, 255),
304
-        (255, 255, 255),
305
-        (0, 0, 0),
306
-        (0, 0, 0),
307
-        (255, 255, 255),
308
-        (255, 255, 255),
309
-        (255, 255, 255),
310
-        (0, 0, 0),
311
-        (0, 0, 0),
312
-    ],
313
-    [
314
-        (255, 255, 255),
315
-        (255, 255, 255),
316
-        (0, 0, 0),
317
-        (0, 0, 0),
318
-        (0, 0, 0),
319
-        (255, 255, 255),
320
-        (0, 0, 0),
321
-        (0, 0, 0),
322
-        (0, 0, 0),
323
-        (0, 0, 0),
324
-        (255, 255, 255),
325
-        (255, 255, 255),
326
-        (0, 0, 0),
327
-        (0, 0, 0),
328
-        (0, 0, 0),
329
-        (0, 0, 0),
330
-        (0, 0, 0),
331
-        (0, 0, 0),
332
-        (0, 0, 0),
333
-        (0, 0, 0),
334
-        (0, 0, 0),
335
-        (0, 0, 0),
336
-        (255, 255, 255),
337
-        (255, 255, 255),
338
-        (0, 0, 0),
339
-    ],
340
-    [
341
-        (255, 255, 255),
342
-        (0, 0, 0),
343
-        (255, 255, 255),
344
-        (0, 0, 0),
345
-        (0, 0, 0),
346
-        (0, 0, 0),
347
-        (255, 255, 255),
348
-        (0, 0, 0),
349
-        (0, 0, 0),
350
-        (0, 0, 0),
351
-        (0, 0, 0),
352
-        (255, 255, 255),
353
-        (0, 0, 0),
354
-        (0, 0, 0),
355
-        (255, 255, 255),
356
-        (0, 0, 0),
357
-        (0, 0, 0),
358
-        (255, 255, 255),
359
-        (255, 255, 255),
360
-        (255, 255, 255),
361
-        (0, 0, 0),
362
-        (255, 255, 255),
363
-        (255, 255, 255),
364
-        (255, 255, 255),
365
-        (255, 255, 255),
366
-    ],
367
-    [
368
-        (255, 255, 255),
369
-        (255, 255, 255),
370
-        (0, 0, 0),
371
-        (0, 0, 0),
372
-        (255, 255, 255),
373
-        (255, 255, 255),
374
-        (0, 0, 0),
375
-        (255, 255, 255),
376
-        (0, 0, 0),
377
-        (255, 255, 255),
378
-        (0, 0, 0),
379
-        (0, 0, 0),
380
-        (255, 255, 255),
381
-        (0, 0, 0),
382
-        (255, 255, 255),
383
-        (255, 255, 255),
384
-        (255, 255, 255),
385
-        (0, 0, 0),
386
-        (0, 0, 0),
387
-        (0, 0, 0),
388
-        (255, 255, 255),
389
-        (0, 0, 0),
390
-        (0, 0, 0),
391
-        (255, 255, 255),
392
-        (0, 0, 0),
393
-    ],
394
-    [
395
-        (0, 0, 0),
396
-        (0, 0, 0),
397
-        (255, 255, 255),
398
-        (255, 255, 255),
399
-        (255, 255, 255),
400
-        (0, 0, 0),
401
-        (255, 255, 255),
402
-        (255, 255, 255),
403
-        (0, 0, 0),
404
-        (0, 0, 0),
405
-        (0, 0, 0),
406
-        (255, 255, 255),
407
-        (255, 255, 255),
408
-        (255, 255, 255),
409
-        (255, 255, 255),
410
-        (255, 255, 255),
411
-        (255, 255, 255),
412
-        (255, 255, 255),
413
-        (0, 0, 0),
414
-        (255, 255, 255),
415
-        (0, 0, 0),
416
-        (255, 255, 255),
417
-        (255, 255, 255),
418
-        (0, 0, 0),
419
-        (0, 0, 0),
420
-    ],
421
-    [
422
-        (0, 0, 0),
423
-        (0, 0, 0),
424
-        (0, 0, 0),
425
-        (0, 0, 0),
426
-        (255, 255, 255),
427
-        (0, 0, 0),
428
-        (0, 0, 0),
429
-        (0, 0, 0),
430
-        (255, 255, 255),
431
-        (255, 255, 255),
432
-        (0, 0, 0),
433
-        (255, 255, 255),
434
-        (0, 0, 0),
435
-        (0, 0, 0),
436
-        (0, 0, 0),
437
-        (0, 0, 0),
438
-        (0, 0, 0),
439
-        (255, 255, 255),
440
-        (255, 255, 255),
441
-        (255, 255, 255),
442
-        (0, 0, 0),
443
-        (255, 255, 255),
444
-        (255, 255, 255),
445
-        (255, 255, 255),
446
-        (0, 0, 0),
447
-    ],
448
-    [
449
-        (255, 255, 255),
450
-        (255, 255, 255),
451
-        (0, 0, 0),
452
-        (0, 0, 0),
453
-        (0, 0, 0),
454
-        (0, 0, 0),
455
-        (255, 255, 255),
456
-        (0, 0, 0),
457
-        (0, 0, 0),
458
-        (255, 255, 255),
459
-        (255, 255, 255),
460
-        (0, 0, 0),
461
-        (255, 255, 255),
462
-        (0, 0, 0),
463
-        (0, 0, 0),
464
-        (255, 255, 255),
465
-        (255, 255, 255),
466
-        (255, 255, 255),
467
-        (255, 255, 255),
468
-        (255, 255, 255),
469
-        (255, 255, 255),
470
-        (255, 255, 255),
471
-        (255, 255, 255),
472
-        (0, 0, 0),
473
-        (0, 0, 0),
474
-    ],
475
-    [
476
-        (0, 0, 0),
477
-        (0, 0, 0),
478
-        (0, 0, 0),
479
-        (0, 0, 0),
480
-        (0, 0, 0),
481
-        (0, 0, 0),
482
-        (0, 0, 0),
483
-        (0, 0, 0),
484
-        (255, 255, 255),
485
-        (255, 255, 255),
486
-        (255, 255, 255),
487
-        (0, 0, 0),
488
-        (0, 0, 0),
489
-        (0, 0, 0),
490
-        (255, 255, 255),
491
-        (0, 0, 0),
492
-        (255, 255, 255),
493
-        (0, 0, 0),
494
-        (0, 0, 0),
495
-        (0, 0, 0),
496
-        (255, 255, 255),
497
-        (0, 0, 0),
498
-        (255, 255, 255),
499
-        (0, 0, 0),
500
-        (0, 0, 0),
501
-    ],
502
-    [
503
-        (255, 255, 255),
504
-        (255, 255, 255),
505
-        (255, 255, 255),
506
-        (255, 255, 255),
507
-        (255, 255, 255),
508
-        (255, 255, 255),
509
-        (255, 255, 255),
510
-        (0, 0, 0),
511
-        (255, 255, 255),
512
-        (0, 0, 0),
513
-        (255, 255, 255),
514
-        (0, 0, 0),
515
-        (0, 0, 0),
516
-        (255, 255, 255),
517
-        (255, 255, 255),
518
-        (0, 0, 0),
519
-        (255, 255, 255),
520
-        (0, 0, 0),
521
-        (255, 255, 255),
522
-        (0, 0, 0),
523
-        (255, 255, 255),
524
-        (255, 255, 255),
525
-        (0, 0, 0),
526
-        (0, 0, 0),
527
-        (0, 0, 0),
528
-    ],
529
-    [
530
-        (255, 255, 255),
531
-        (0, 0, 0),
532
-        (0, 0, 0),
533
-        (0, 0, 0),
534
-        (0, 0, 0),
535
-        (0, 0, 0),
536
-        (255, 255, 255),
537
-        (0, 0, 0),
538
-        (0, 0, 0),
539
-        (0, 0, 0),
540
-        (255, 255, 255),
541
-        (0, 0, 0),
542
-        (255, 255, 255),
543
-        (0, 0, 0),
544
-        (0, 0, 0),
545
-        (255, 255, 255),
546
-        (255, 255, 255),
547
-        (0, 0, 0),
548
-        (0, 0, 0),
549
-        (0, 0, 0),
550
-        (255, 255, 255),
551
-        (255, 255, 255),
552
-        (255, 255, 255),
553
-        (255, 255, 255),
554
-        (0, 0, 0),
555
-    ],
556
-    [
557
-        (255, 255, 255),
558
-        (0, 0, 0),
559
-        (255, 255, 255),
560
-        (255, 255, 255),
561
-        (255, 255, 255),
562
-        (0, 0, 0),
563
-        (255, 255, 255),
564
-        (0, 0, 0),
565
-        (255, 255, 255),
566
-        (255, 255, 255),
567
-        (255, 255, 255),
568
-        (255, 255, 255),
569
-        (255, 255, 255),
570
-        (0, 0, 0),
571
-        (0, 0, 0),
572
-        (0, 0, 0),
573
-        (255, 255, 255),
574
-        (255, 255, 255),
575
-        (255, 255, 255),
576
-        (255, 255, 255),
577
-        (255, 255, 255),
578
-        (0, 0, 0),
579
-        (255, 255, 255),
580
-        (0, 0, 0),
581
-        (0, 0, 0),
582
-    ],
583
-    [
584
-        (255, 255, 255),
585
-        (0, 0, 0),
586
-        (255, 255, 255),
587
-        (255, 255, 255),
588
-        (255, 255, 255),
589
-        (0, 0, 0),
590
-        (255, 255, 255),
591
-        (0, 0, 0),
592
-        (0, 0, 0),
593
-        (255, 255, 255),
594
-        (255, 255, 255),
595
-        (0, 0, 0),
596
-        (255, 255, 255),
597
-        (255, 255, 255),
598
-        (255, 255, 255),
599
-        (0, 0, 0),
600
-        (0, 0, 0),
601
-        (255, 255, 255),
602
-        (255, 255, 255),
603
-        (0, 0, 0),
604
-        (0, 0, 0),
605
-        (255, 255, 255),
606
-        (255, 255, 255),
607
-        (255, 255, 255),
608
-        (255, 255, 255),
609
-    ],
610
-    [
611
-        (255, 255, 255),
612
-        (0, 0, 0),
613
-        (255, 255, 255),
614
-        (255, 255, 255),
615
-        (255, 255, 255),
616
-        (0, 0, 0),
617
-        (255, 255, 255),
618
-        (0, 0, 0),
619
-        (0, 0, 0),
620
-        (255, 255, 255),
621
-        (255, 255, 255),
622
-        (255, 255, 255),
623
-        (0, 0, 0),
624
-        (0, 0, 0),
625
-        (255, 255, 255),
626
-        (0, 0, 0),
627
-        (255, 255, 255),
628
-        (255, 255, 255),
629
-        (255, 255, 255),
630
-        (255, 255, 255),
631
-        (0, 0, 0),
632
-        (0, 0, 0),
633
-        (0, 0, 0),
634
-        (255, 255, 255),
635
-        (0, 0, 0),
636
-    ],
637
-    [
638
-        (255, 255, 255),
639
-        (0, 0, 0),
640
-        (0, 0, 0),
641
-        (0, 0, 0),
642
-        (0, 0, 0),
643
-        (0, 0, 0),
644
-        (255, 255, 255),
645
-        (0, 0, 0),
646
-        (0, 0, 0),
647
-        (0, 0, 0),
648
-        (0, 0, 0),
649
-        (255, 255, 255),
650
-        (255, 255, 255),
651
-        (0, 0, 0),
652
-        (255, 255, 255),
653
-        (0, 0, 0),
654
-        (0, 0, 0),
655
-        (0, 0, 0),
656
-        (255, 255, 255),
657
-        (255, 255, 255),
658
-        (255, 255, 255),
659
-        (255, 255, 255),
660
-        (255, 255, 255),
661
-        (255, 255, 255),
662
-        (0, 0, 0),
663
-    ],
664
-    [
665
-        (255, 255, 255),
666
-        (255, 255, 255),
667
-        (255, 255, 255),
668
-        (255, 255, 255),
669
-        (255, 255, 255),
670
-        (255, 255, 255),
671
-        (255, 255, 255),
672
-        (0, 0, 0),
673
-        (255, 255, 255),
674
-        (0, 0, 0),
675
-        (0, 0, 0),
676
-        (0, 0, 0),
677
-        (0, 0, 0),
678
-        (0, 0, 0),
679
-        (0, 0, 0),
680
-        (255, 255, 255),
681
-        (0, 0, 0),
682
-        (255, 255, 255),
683
-        (0, 0, 0),
684
-        (0, 0, 0),
685
-        (0, 0, 0),
686
-        (0, 0, 0),
687
-        (255, 255, 255),
688
-        (255, 255, 255),
689
-        (255, 255, 255),
690
-    ],
691
-]
13
+# pre-converted images for Pico (required libraries not available)
14
+from qr_tmp import qr_data
15
+from img_tmp import img_data
692 16
 
693 17
 if True:#__name__ == "__main__":
694 18
     from solid import Solid
@@ -713,17 +37,21 @@ if True:#__name__ == "__main__":
713 37
 
714 38
     # UbaBot is online
715 39
     success = Manager(t)
716
-    success.add(ScrollText(t, "Visit UbaBot Cocktail machine at FruBar village for drinks!", "bitmap8", 1, 10, camp_pink))
40
+    success.add(ScrollText(t, "Visit UbaBot Cocktail machine at FruBar village for drinks!", "bitmap8", 1, 10, camp_green))
717 41
     success.add(Solid(t, 1.0))
718
-    success.add(QRScreen(t, qr_data, 30.0, "Drinks", "bitmap6", (255, 255, 255), (0, 0, 0)))
42
+    success.add(QRScreen(t, qr_data, 30.0, "Drinks", "bitmap6", camp_pink, (0, 0, 0)))
719 43
     success.add(Solid(t, 1.0))
720 44
 
721 45
     # UbaBot is offline
722 46
     fail = Manager(t)
723
-    fail.add(ScrollText(t, "The UbaBot Cocktail machine is closed. Please come back later!", "bitmap8", 1, 10, camp_pink))
47
+    fail.add(ScrollText(t, "#CCCAMP23", "bitmap8", 1, 10, camp_green))
48
+    fail.add(Solid(t, 1.0))
49
+    fail.add(ScrollText(t, "The UbaBot Cocktail machine is closed. Please come back later!", "bitmap8", 1, 10, camp_green))
724 50
     fail.add(Solid(t, 1.0))
725 51
     fail.add(GameOfLife(t, 20, (0, 255, 0), (0, 0, 0), None, 2.0))
726 52
     fail.add(Solid(t, 1.0))
53
+    fail.add(ScrollText(t, "Your advertisement could appear here. Open a Pull Request on git.xythobuz.de/thomas/rgb-matrix-visualizer or send an e-mail to thomas@xythobuz.de", "bitmap8", 1, 10, camp_green))
54
+    fail.add(Solid(t, 1.0))
727 55
 
728 56
     # UbaBot status checker
729 57
     d = CheckHTTP(url)
@@ -732,7 +60,7 @@ if True:#__name__ == "__main__":
732 60
 
733 61
     # Main "Menu"
734 62
     m = Manager(t)
735
-    m.add(ScrollText(t, "#CCCAMP23", "bitmap8", 1, 10, camp_green))
63
+    m.add(QRScreen(t, img_data, 15.0))
736 64
     m.add(Solid(t, 1.0))
737 65
     m.add(d) # HTTP Check, either "success" or "fail"
738 66
     m.add(Solid(t, 1.0))

+ 1092
- 0
img_tmp.py
Plik diff jest za duży
Wyświetl plik


+ 679
- 0
qr_tmp.py Wyświetl plik

@@ -0,0 +1,679 @@
1
+# QR code image for "http://ubabot.frubar.net"
2
+# size:25x25
3
+qr_data = [
4
+    [
5
+        (255, 255, 255),
6
+        (255, 255, 255),
7
+        (255, 255, 255),
8
+        (255, 255, 255),
9
+        (255, 255, 255),
10
+        (255, 255, 255),
11
+        (255, 255, 255),
12
+        (0, 0, 0),
13
+        (255, 255, 255),
14
+        (255, 255, 255),
15
+        (0, 0, 0),
16
+        (255, 255, 255),
17
+        (0, 0, 0),
18
+        (255, 255, 255),
19
+        (255, 255, 255),
20
+        (255, 255, 255),
21
+        (255, 255, 255),
22
+        (0, 0, 0),
23
+        (255, 255, 255),
24
+        (255, 255, 255),
25
+        (255, 255, 255),
26
+        (255, 255, 255),
27
+        (255, 255, 255),
28
+        (255, 255, 255),
29
+        (255, 255, 255),
30
+    ],
31
+    [
32
+        (255, 255, 255),
33
+        (0, 0, 0),
34
+        (0, 0, 0),
35
+        (0, 0, 0),
36
+        (0, 0, 0),
37
+        (0, 0, 0),
38
+        (255, 255, 255),
39
+        (0, 0, 0),
40
+        (0, 0, 0),
41
+        (0, 0, 0),
42
+        (0, 0, 0),
43
+        (0, 0, 0),
44
+        (0, 0, 0),
45
+        (0, 0, 0),
46
+        (255, 255, 255),
47
+        (0, 0, 0),
48
+        (255, 255, 255),
49
+        (0, 0, 0),
50
+        (255, 255, 255),
51
+        (0, 0, 0),
52
+        (0, 0, 0),
53
+        (0, 0, 0),
54
+        (0, 0, 0),
55
+        (0, 0, 0),
56
+        (255, 255, 255),
57
+    ],
58
+    [
59
+        (255, 255, 255),
60
+        (0, 0, 0),
61
+        (255, 255, 255),
62
+        (255, 255, 255),
63
+        (255, 255, 255),
64
+        (0, 0, 0),
65
+        (255, 255, 255),
66
+        (0, 0, 0),
67
+        (0, 0, 0),
68
+        (255, 255, 255),
69
+        (255, 255, 255),
70
+        (255, 255, 255),
71
+        (255, 255, 255),
72
+        (0, 0, 0),
73
+        (0, 0, 0),
74
+        (255, 255, 255),
75
+        (0, 0, 0),
76
+        (0, 0, 0),
77
+        (255, 255, 255),
78
+        (0, 0, 0),
79
+        (255, 255, 255),
80
+        (255, 255, 255),
81
+        (255, 255, 255),
82
+        (0, 0, 0),
83
+        (255, 255, 255),
84
+    ],
85
+    [
86
+        (255, 255, 255),
87
+        (0, 0, 0),
88
+        (255, 255, 255),
89
+        (255, 255, 255),
90
+        (255, 255, 255),
91
+        (0, 0, 0),
92
+        (255, 255, 255),
93
+        (0, 0, 0),
94
+        (255, 255, 255),
95
+        (0, 0, 0),
96
+        (255, 255, 255),
97
+        (255, 255, 255),
98
+        (255, 255, 255),
99
+        (255, 255, 255),
100
+        (255, 255, 255),
101
+        (255, 255, 255),
102
+        (0, 0, 0),
103
+        (0, 0, 0),
104
+        (255, 255, 255),
105
+        (0, 0, 0),
106
+        (255, 255, 255),
107
+        (255, 255, 255),
108
+        (255, 255, 255),
109
+        (0, 0, 0),
110
+        (255, 255, 255),
111
+    ],
112
+    [
113
+        (255, 255, 255),
114
+        (0, 0, 0),
115
+        (255, 255, 255),
116
+        (255, 255, 255),
117
+        (255, 255, 255),
118
+        (0, 0, 0),
119
+        (255, 255, 255),
120
+        (0, 0, 0),
121
+        (255, 255, 255),
122
+        (0, 0, 0),
123
+        (255, 255, 255),
124
+        (0, 0, 0),
125
+        (0, 0, 0),
126
+        (255, 255, 255),
127
+        (255, 255, 255),
128
+        (255, 255, 255),
129
+        (255, 255, 255),
130
+        (0, 0, 0),
131
+        (255, 255, 255),
132
+        (0, 0, 0),
133
+        (255, 255, 255),
134
+        (255, 255, 255),
135
+        (255, 255, 255),
136
+        (0, 0, 0),
137
+        (255, 255, 255),
138
+    ],
139
+    [
140
+        (255, 255, 255),
141
+        (0, 0, 0),
142
+        (0, 0, 0),
143
+        (0, 0, 0),
144
+        (0, 0, 0),
145
+        (0, 0, 0),
146
+        (255, 255, 255),
147
+        (0, 0, 0),
148
+        (255, 255, 255),
149
+        (255, 255, 255),
150
+        (255, 255, 255),
151
+        (255, 255, 255),
152
+        (0, 0, 0),
153
+        (255, 255, 255),
154
+        (255, 255, 255),
155
+        (0, 0, 0),
156
+        (0, 0, 0),
157
+        (0, 0, 0),
158
+        (255, 255, 255),
159
+        (0, 0, 0),
160
+        (0, 0, 0),
161
+        (0, 0, 0),
162
+        (0, 0, 0),
163
+        (0, 0, 0),
164
+        (255, 255, 255),
165
+    ],
166
+    [
167
+        (255, 255, 255),
168
+        (255, 255, 255),
169
+        (255, 255, 255),
170
+        (255, 255, 255),
171
+        (255, 255, 255),
172
+        (255, 255, 255),
173
+        (255, 255, 255),
174
+        (0, 0, 0),
175
+        (255, 255, 255),
176
+        (0, 0, 0),
177
+        (255, 255, 255),
178
+        (0, 0, 0),
179
+        (255, 255, 255),
180
+        (0, 0, 0),
181
+        (255, 255, 255),
182
+        (0, 0, 0),
183
+        (255, 255, 255),
184
+        (0, 0, 0),
185
+        (255, 255, 255),
186
+        (255, 255, 255),
187
+        (255, 255, 255),
188
+        (255, 255, 255),
189
+        (255, 255, 255),
190
+        (255, 255, 255),
191
+        (255, 255, 255),
192
+    ],
193
+    [
194
+        (0, 0, 0),
195
+        (0, 0, 0),
196
+        (0, 0, 0),
197
+        (0, 0, 0),
198
+        (0, 0, 0),
199
+        (0, 0, 0),
200
+        (0, 0, 0),
201
+        (0, 0, 0),
202
+        (255, 255, 255),
203
+        (0, 0, 0),
204
+        (255, 255, 255),
205
+        (0, 0, 0),
206
+        (255, 255, 255),
207
+        (0, 0, 0),
208
+        (255, 255, 255),
209
+        (0, 0, 0),
210
+        (255, 255, 255),
211
+        (0, 0, 0),
212
+        (0, 0, 0),
213
+        (0, 0, 0),
214
+        (0, 0, 0),
215
+        (0, 0, 0),
216
+        (0, 0, 0),
217
+        (0, 0, 0),
218
+        (0, 0, 0),
219
+    ],
220
+    [
221
+        (255, 255, 255),
222
+        (0, 0, 0),
223
+        (0, 0, 0),
224
+        (0, 0, 0),
225
+        (255, 255, 255),
226
+        (0, 0, 0),
227
+        (255, 255, 255),
228
+        (255, 255, 255),
229
+        (255, 255, 255),
230
+        (255, 255, 255),
231
+        (0, 0, 0),
232
+        (0, 0, 0),
233
+        (255, 255, 255),
234
+        (0, 0, 0),
235
+        (0, 0, 0),
236
+        (0, 0, 0),
237
+        (255, 255, 255),
238
+        (255, 255, 255),
239
+        (255, 255, 255),
240
+        (255, 255, 255),
241
+        (255, 255, 255),
242
+        (255, 255, 255),
243
+        (0, 0, 0),
244
+        (0, 0, 0),
245
+        (255, 255, 255),
246
+    ],
247
+    [
248
+        (255, 255, 255),
249
+        (255, 255, 255),
250
+        (0, 0, 0),
251
+        (0, 0, 0),
252
+        (0, 0, 0),
253
+        (255, 255, 255),
254
+        (0, 0, 0),
255
+        (255, 255, 255),
256
+        (255, 255, 255),
257
+        (255, 255, 255),
258
+        (0, 0, 0),
259
+        (255, 255, 255),
260
+        (255, 255, 255),
261
+        (255, 255, 255),
262
+        (0, 0, 0),
263
+        (255, 255, 255),
264
+        (255, 255, 255),
265
+        (0, 0, 0),
266
+        (0, 0, 0),
267
+        (0, 0, 0),
268
+        (255, 255, 255),
269
+        (255, 255, 255),
270
+        (0, 0, 0),
271
+        (255, 255, 255),
272
+        (0, 0, 0),
273
+    ],
274
+    [
275
+        (0, 0, 0),
276
+        (0, 0, 0),
277
+        (0, 0, 0),
278
+        (255, 255, 255),
279
+        (0, 0, 0),
280
+        (255, 255, 255),
281
+        (255, 255, 255),
282
+        (0, 0, 0),
283
+        (255, 255, 255),
284
+        (0, 0, 0),
285
+        (255, 255, 255),
286
+        (255, 255, 255),
287
+        (0, 0, 0),
288
+        (255, 255, 255),
289
+        (0, 0, 0),
290
+        (255, 255, 255),
291
+        (255, 255, 255),
292
+        (255, 255, 255),
293
+        (0, 0, 0),
294
+        (0, 0, 0),
295
+        (255, 255, 255),
296
+        (255, 255, 255),
297
+        (255, 255, 255),
298
+        (0, 0, 0),
299
+        (0, 0, 0),
300
+    ],
301
+    [
302
+        (255, 255, 255),
303
+        (255, 255, 255),
304
+        (0, 0, 0),
305
+        (0, 0, 0),
306
+        (0, 0, 0),
307
+        (255, 255, 255),
308
+        (0, 0, 0),
309
+        (0, 0, 0),
310
+        (0, 0, 0),
311
+        (0, 0, 0),
312
+        (255, 255, 255),
313
+        (255, 255, 255),
314
+        (0, 0, 0),
315
+        (0, 0, 0),
316
+        (0, 0, 0),
317
+        (0, 0, 0),
318
+        (0, 0, 0),
319
+        (0, 0, 0),
320
+        (0, 0, 0),
321
+        (0, 0, 0),
322
+        (0, 0, 0),
323
+        (0, 0, 0),
324
+        (255, 255, 255),
325
+        (255, 255, 255),
326
+        (0, 0, 0),
327
+    ],
328
+    [
329
+        (255, 255, 255),
330
+        (0, 0, 0),
331
+        (255, 255, 255),
332
+        (0, 0, 0),
333
+        (0, 0, 0),
334
+        (0, 0, 0),
335
+        (255, 255, 255),
336
+        (0, 0, 0),
337
+        (0, 0, 0),
338
+        (0, 0, 0),
339
+        (0, 0, 0),
340
+        (255, 255, 255),
341
+        (0, 0, 0),
342
+        (0, 0, 0),
343
+        (255, 255, 255),
344
+        (0, 0, 0),
345
+        (0, 0, 0),
346
+        (255, 255, 255),
347
+        (255, 255, 255),
348
+        (255, 255, 255),
349
+        (0, 0, 0),
350
+        (255, 255, 255),
351
+        (255, 255, 255),
352
+        (255, 255, 255),
353
+        (255, 255, 255),
354
+    ],
355
+    [
356
+        (255, 255, 255),
357
+        (255, 255, 255),
358
+        (0, 0, 0),
359
+        (0, 0, 0),
360
+        (255, 255, 255),
361
+        (255, 255, 255),
362
+        (0, 0, 0),
363
+        (255, 255, 255),
364
+        (0, 0, 0),
365
+        (255, 255, 255),
366
+        (0, 0, 0),
367
+        (0, 0, 0),
368
+        (255, 255, 255),
369
+        (0, 0, 0),
370
+        (255, 255, 255),
371
+        (255, 255, 255),
372
+        (255, 255, 255),
373
+        (0, 0, 0),
374
+        (0, 0, 0),
375
+        (0, 0, 0),
376
+        (255, 255, 255),
377
+        (0, 0, 0),
378
+        (0, 0, 0),
379
+        (255, 255, 255),
380
+        (0, 0, 0),
381
+    ],
382
+    [
383
+        (0, 0, 0),
384
+        (0, 0, 0),
385
+        (255, 255, 255),
386
+        (255, 255, 255),
387
+        (255, 255, 255),
388
+        (0, 0, 0),
389
+        (255, 255, 255),
390
+        (255, 255, 255),
391
+        (0, 0, 0),
392
+        (0, 0, 0),
393
+        (0, 0, 0),
394
+        (255, 255, 255),
395
+        (255, 255, 255),
396
+        (255, 255, 255),
397
+        (255, 255, 255),
398
+        (255, 255, 255),
399
+        (255, 255, 255),
400
+        (255, 255, 255),
401
+        (0, 0, 0),
402
+        (255, 255, 255),
403
+        (0, 0, 0),
404
+        (255, 255, 255),
405
+        (255, 255, 255),
406
+        (0, 0, 0),
407
+        (0, 0, 0),
408
+    ],
409
+    [
410
+        (0, 0, 0),
411
+        (0, 0, 0),
412
+        (0, 0, 0),
413
+        (0, 0, 0),
414
+        (255, 255, 255),
415
+        (0, 0, 0),
416
+        (0, 0, 0),
417
+        (0, 0, 0),
418
+        (255, 255, 255),
419
+        (255, 255, 255),
420
+        (0, 0, 0),
421
+        (255, 255, 255),
422
+        (0, 0, 0),
423
+        (0, 0, 0),
424
+        (0, 0, 0),
425
+        (0, 0, 0),
426
+        (0, 0, 0),
427
+        (255, 255, 255),
428
+        (255, 255, 255),
429
+        (255, 255, 255),
430
+        (0, 0, 0),
431
+        (255, 255, 255),
432
+        (255, 255, 255),
433
+        (255, 255, 255),
434
+        (0, 0, 0),
435
+    ],
436
+    [
437
+        (255, 255, 255),
438
+        (255, 255, 255),
439
+        (0, 0, 0),
440
+        (0, 0, 0),
441
+        (0, 0, 0),
442
+        (0, 0, 0),
443
+        (255, 255, 255),
444
+        (0, 0, 0),
445
+        (0, 0, 0),
446
+        (255, 255, 255),
447
+        (255, 255, 255),
448
+        (0, 0, 0),
449
+        (255, 255, 255),
450
+        (0, 0, 0),
451
+        (0, 0, 0),
452
+        (255, 255, 255),
453
+        (255, 255, 255),
454
+        (255, 255, 255),
455
+        (255, 255, 255),
456
+        (255, 255, 255),
457
+        (255, 255, 255),
458
+        (255, 255, 255),
459
+        (255, 255, 255),
460
+        (0, 0, 0),
461
+        (0, 0, 0),
462
+    ],
463
+    [
464
+        (0, 0, 0),
465
+        (0, 0, 0),
466
+        (0, 0, 0),
467
+        (0, 0, 0),
468
+        (0, 0, 0),
469
+        (0, 0, 0),
470
+        (0, 0, 0),
471
+        (0, 0, 0),
472
+        (255, 255, 255),
473
+        (255, 255, 255),
474
+        (255, 255, 255),
475
+        (0, 0, 0),
476
+        (0, 0, 0),
477
+        (0, 0, 0),
478
+        (255, 255, 255),
479
+        (0, 0, 0),
480
+        (255, 255, 255),
481
+        (0, 0, 0),
482
+        (0, 0, 0),
483
+        (0, 0, 0),
484
+        (255, 255, 255),
485
+        (0, 0, 0),
486
+        (255, 255, 255),
487
+        (0, 0, 0),
488
+        (0, 0, 0),
489
+    ],
490
+    [
491
+        (255, 255, 255),
492
+        (255, 255, 255),
493
+        (255, 255, 255),
494
+        (255, 255, 255),
495
+        (255, 255, 255),
496
+        (255, 255, 255),
497
+        (255, 255, 255),
498
+        (0, 0, 0),
499
+        (255, 255, 255),
500
+        (0, 0, 0),
501
+        (255, 255, 255),
502
+        (0, 0, 0),
503
+        (0, 0, 0),
504
+        (255, 255, 255),
505
+        (255, 255, 255),
506
+        (0, 0, 0),
507
+        (255, 255, 255),
508
+        (0, 0, 0),
509
+        (255, 255, 255),
510
+        (0, 0, 0),
511
+        (255, 255, 255),
512
+        (255, 255, 255),
513
+        (0, 0, 0),
514
+        (0, 0, 0),
515
+        (0, 0, 0),
516
+    ],
517
+    [
518
+        (255, 255, 255),
519
+        (0, 0, 0),
520
+        (0, 0, 0),
521
+        (0, 0, 0),
522
+        (0, 0, 0),
523
+        (0, 0, 0),
524
+        (255, 255, 255),
525
+        (0, 0, 0),
526
+        (0, 0, 0),
527
+        (0, 0, 0),
528
+        (255, 255, 255),
529
+        (0, 0, 0),
530
+        (255, 255, 255),
531
+        (0, 0, 0),
532
+        (0, 0, 0),
533
+        (255, 255, 255),
534
+        (255, 255, 255),
535
+        (0, 0, 0),
536
+        (0, 0, 0),
537
+        (0, 0, 0),
538
+        (255, 255, 255),
539
+        (255, 255, 255),
540
+        (255, 255, 255),
541
+        (255, 255, 255),
542
+        (0, 0, 0),
543
+    ],
544
+    [
545
+        (255, 255, 255),
546
+        (0, 0, 0),
547
+        (255, 255, 255),
548
+        (255, 255, 255),
549
+        (255, 255, 255),
550
+        (0, 0, 0),
551
+        (255, 255, 255),
552
+        (0, 0, 0),
553
+        (255, 255, 255),
554
+        (255, 255, 255),
555
+        (255, 255, 255),
556
+        (255, 255, 255),
557
+        (255, 255, 255),
558
+        (0, 0, 0),
559
+        (0, 0, 0),
560
+        (0, 0, 0),
561
+        (255, 255, 255),
562
+        (255, 255, 255),
563
+        (255, 255, 255),
564
+        (255, 255, 255),
565
+        (255, 255, 255),
566
+        (0, 0, 0),
567
+        (255, 255, 255),
568
+        (0, 0, 0),
569
+        (0, 0, 0),
570
+    ],
571
+    [
572
+        (255, 255, 255),
573
+        (0, 0, 0),
574
+        (255, 255, 255),
575
+        (255, 255, 255),
576
+        (255, 255, 255),
577
+        (0, 0, 0),
578
+        (255, 255, 255),
579
+        (0, 0, 0),
580
+        (0, 0, 0),
581
+        (255, 255, 255),
582
+        (255, 255, 255),
583
+        (0, 0, 0),
584
+        (255, 255, 255),
585
+        (255, 255, 255),
586
+        (255, 255, 255),
587
+        (0, 0, 0),
588
+        (0, 0, 0),
589
+        (255, 255, 255),
590
+        (255, 255, 255),
591
+        (0, 0, 0),
592
+        (0, 0, 0),
593
+        (255, 255, 255),
594
+        (255, 255, 255),
595
+        (255, 255, 255),
596
+        (255, 255, 255),
597
+    ],
598
+    [
599
+        (255, 255, 255),
600
+        (0, 0, 0),
601
+        (255, 255, 255),
602
+        (255, 255, 255),
603
+        (255, 255, 255),
604
+        (0, 0, 0),
605
+        (255, 255, 255),
606
+        (0, 0, 0),
607
+        (0, 0, 0),
608
+        (255, 255, 255),
609
+        (255, 255, 255),
610
+        (255, 255, 255),
611
+        (0, 0, 0),
612
+        (0, 0, 0),
613
+        (255, 255, 255),
614
+        (0, 0, 0),
615
+        (255, 255, 255),
616
+        (255, 255, 255),
617
+        (255, 255, 255),
618
+        (255, 255, 255),
619
+        (0, 0, 0),
620
+        (0, 0, 0),
621
+        (0, 0, 0),
622
+        (255, 255, 255),
623
+        (0, 0, 0),
624
+    ],
625
+    [
626
+        (255, 255, 255),
627
+        (0, 0, 0),
628
+        (0, 0, 0),
629
+        (0, 0, 0),
630
+        (0, 0, 0),
631
+        (0, 0, 0),
632
+        (255, 255, 255),
633
+        (0, 0, 0),
634
+        (0, 0, 0),
635
+        (0, 0, 0),
636
+        (0, 0, 0),
637
+        (255, 255, 255),
638
+        (255, 255, 255),
639
+        (0, 0, 0),
640
+        (255, 255, 255),
641
+        (0, 0, 0),
642
+        (0, 0, 0),
643
+        (0, 0, 0),
644
+        (255, 255, 255),
645
+        (255, 255, 255),
646
+        (255, 255, 255),
647
+        (255, 255, 255),
648
+        (255, 255, 255),
649
+        (255, 255, 255),
650
+        (0, 0, 0),
651
+    ],
652
+    [
653
+        (255, 255, 255),
654
+        (255, 255, 255),
655
+        (255, 255, 255),
656
+        (255, 255, 255),
657
+        (255, 255, 255),
658
+        (255, 255, 255),
659
+        (255, 255, 255),
660
+        (0, 0, 0),
661
+        (255, 255, 255),
662
+        (0, 0, 0),
663
+        (0, 0, 0),
664
+        (0, 0, 0),
665
+        (0, 0, 0),
666
+        (0, 0, 0),
667
+        (0, 0, 0),
668
+        (255, 255, 255),
669
+        (0, 0, 0),
670
+        (255, 255, 255),
671
+        (0, 0, 0),
672
+        (0, 0, 0),
673
+        (0, 0, 0),
674
+        (0, 0, 0),
675
+        (255, 255, 255),
676
+        (255, 255, 255),
677
+        (255, 255, 255),
678
+    ],
679
+]

Ładowanie…
Anuluj
Zapisz