-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.h
72 lines (67 loc) · 4.27 KB
/
data.h
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
#pragma once
#define FONT_WIDTH 6
PROGMEM static const uint8_t font[][FONT_WIDTH - 1] = {
{ 0x00, 0x00, 0x5F, 0x00, 0x00 }, { 0x00, 0x07, 0x00, 0x07, 0x00 },
{ 0x14, 0x7F, 0x14, 0x7F, 0x14 }, { 0x24, 0x2A, 0x7F, 0x2A, 0x12 },
{ 0x23, 0x13, 0x08, 0x64, 0x62 }, { 0x36, 0x49, 0x56, 0x20, 0x50 },
{ 0x00, 0x08, 0x07, 0x03, 0x00 }, { 0x00, 0x1C, 0x22, 0x41, 0x00 },
{ 0x00, 0x41, 0x22, 0x1C, 0x00 }, { 0x2A, 0x1C, 0x7F, 0x1C, 0x2A },
{ 0x08, 0x08, 0x3E, 0x08, 0x08 }, { 0x00, 0x80, 0x70, 0x30, 0x00 },
{ 0x08, 0x08, 0x08, 0x08, 0x08 }, { 0x00, 0x00, 0x60, 0x60, 0x00 },
{ 0x20, 0x10, 0x08, 0x04, 0x02 }, { 0x3E, 0x51, 0x49, 0x45, 0x3E },
{ 0x00, 0x42, 0x7F, 0x40, 0x00 }, { 0x72, 0x49, 0x49, 0x49, 0x46 },
{ 0x21, 0x41, 0x49, 0x4D, 0x33 }, { 0x18, 0x14, 0x12, 0x7F, 0x10 },
{ 0x27, 0x45, 0x45, 0x45, 0x39 }, { 0x3C, 0x4A, 0x49, 0x49, 0x31 },
{ 0x41, 0x21, 0x11, 0x09, 0x07 }, { 0x36, 0x49, 0x49, 0x49, 0x36 },
{ 0x46, 0x49, 0x49, 0x29, 0x1E }, { 0x00, 0x00, 0x14, 0x00, 0x00 },
{ 0x00, 0x40, 0x34, 0x00, 0x00 }, { 0x00, 0x08, 0x14, 0x22, 0x41 },
{ 0x14, 0x14, 0x14, 0x14, 0x14 }, { 0x00, 0x41, 0x22, 0x14, 0x08 },
{ 0x02, 0x01, 0x59, 0x09, 0x06 }, { 0x3E, 0x41, 0x5D, 0x59, 0x4E },
{ 0x7C, 0x12, 0x11, 0x12, 0x7C }, { 0x7F, 0x49, 0x49, 0x49, 0x36 },
{ 0x3E, 0x41, 0x41, 0x41, 0x22 }, { 0x7F, 0x41, 0x41, 0x41, 0x3E },
{ 0x7F, 0x49, 0x49, 0x49, 0x41 }, { 0x7F, 0x09, 0x09, 0x09, 0x01 },
{ 0x3E, 0x41, 0x41, 0x51, 0x73 }, { 0x7F, 0x08, 0x08, 0x08, 0x7F },
{ 0x00, 0x41, 0x7F, 0x41, 0x00 }, { 0x20, 0x40, 0x41, 0x3F, 0x01 },
{ 0x7F, 0x08, 0x14, 0x22, 0x41 }, { 0x7F, 0x40, 0x40, 0x40, 0x40 },
{ 0x7F, 0x02, 0x1C, 0x02, 0x7F }, { 0x7F, 0x04, 0x08, 0x10, 0x7F },
{ 0x3E, 0x41, 0x41, 0x41, 0x3E }, { 0x7F, 0x09, 0x09, 0x09, 0x06 },
{ 0x3E, 0x41, 0x51, 0x21, 0x5E }, { 0x7F, 0x09, 0x19, 0x29, 0x46 },
{ 0x26, 0x49, 0x49, 0x49, 0x32 }, { 0x03, 0x01, 0x7F, 0x01, 0x03 },
{ 0x3F, 0x40, 0x40, 0x40, 0x3F }, { 0x1F, 0x20, 0x40, 0x20, 0x1F },
{ 0x3F, 0x40, 0x38, 0x40, 0x3F }, { 0x63, 0x14, 0x08, 0x14, 0x63 },
{ 0x03, 0x04, 0x78, 0x04, 0x03 }, { 0x61, 0x59, 0x49, 0x4D, 0x43 },
{ 0x00, 0x7F, 0x41, 0x41, 0x41 }, { 0x02, 0x04, 0x08, 0x10, 0x20 },
{ 0x00, 0x41, 0x41, 0x41, 0x7F }, { 0x04, 0x02, 0x01, 0x02, 0x04 },
{ 0x40, 0x40, 0x40, 0x40, 0x40 }, { 0x00, 0x03, 0x07, 0x08, 0x00 },
{ 0x20, 0x54, 0x54, 0x78, 0x40 }, { 0x7F, 0x28, 0x44, 0x44, 0x38 },
{ 0x38, 0x44, 0x44, 0x44, 0x28 }, { 0x38, 0x44, 0x44, 0x28, 0x7F },
{ 0x38, 0x54, 0x54, 0x54, 0x18 }, { 0x00, 0x08, 0x7E, 0x09, 0x02 },
{ 0x18, 0xA4, 0xA4, 0x9C, 0x78 }, { 0x7F, 0x08, 0x04, 0x04, 0x78 },
{ 0x00, 0x44, 0x7D, 0x40, 0x00 }, { 0x20, 0x40, 0x40, 0x3D, 0x00 },
{ 0x7F, 0x10, 0x28, 0x44, 0x00 }, { 0x00, 0x41, 0x7F, 0x40, 0x00 },
{ 0x7C, 0x04, 0x78, 0x04, 0x78 }, { 0x7C, 0x08, 0x04, 0x04, 0x78 },
{ 0x38, 0x44, 0x44, 0x44, 0x38 }, { 0xFC, 0x18, 0x24, 0x24, 0x18 },
{ 0x18, 0x24, 0x24, 0x18, 0xFC }, { 0x7C, 0x08, 0x04, 0x04, 0x08 },
{ 0x48, 0x54, 0x54, 0x54, 0x24 }, { 0x04, 0x04, 0x3F, 0x44, 0x24 },
{ 0x3C, 0x40, 0x40, 0x20, 0x7C }, { 0x1C, 0x20, 0x40, 0x20, 0x1C },
{ 0x3C, 0x40, 0x30, 0x40, 0x3C }, { 0x44, 0x28, 0x10, 0x28, 0x44 },
{ 0x4C, 0x90, 0x90, 0x90, 0x7C }, { 0x44, 0x64, 0x54, 0x4C, 0x44 },
{ 0x00, 0x08, 0x36, 0x41, 0x00 }, { 0x00, 0x00, 0x77, 0x00, 0x00 },
{ 0x00, 0x41, 0x36, 0x08, 0x00 }, { 0x02, 0x01, 0x02, 0x04, 0x02 },
};
PROGMEM static const char message[] = " ATtiny85SwingPOV ";
PROGMEM static const uint8_t hsvTable[][6] = {
{ 96, 255, 192, 36, 186, 240 },
{ 0, 192, 255, 30, 128, 240 },
{ 171, 144, 255, 43, 72, 240 },
};
PROGMEM static const uint16_t bitmap[][4] = {
{ 0x1000, 0x0111, 0x1110, 0x0001 }, { 0x8100, 0x79bb, 0xbb97, 0x0018 },
{ 0x1100, 0x1111, 0x1111, 0x0011 }, { 0x8100, 0x79bb, 0xbb97, 0x0018 },
{ 0x1000, 0x7111, 0x1117, 0x0001 }, { 0x0000, 0xbba1, 0x1abb, 0x0000 },
{ 0x0110, 0x1111, 0x1111, 0x0110 }, { 0x1ba1, 0xb970, 0x079b, 0x1ab1 },
{ 0x1bb1, 0x1111, 0x1111, 0x1bb1 }, { 0x6410, 0x6642, 0x2466, 0x0146 },
{ 0x1100, 0x1111, 0x1111, 0x0011 }, { 0x0000, 0x6640, 0x0466, 0x0000 },
{ 0x1100, 0x1111, 0x1111, 0x0011 }, { 0xbb10, 0x5326, 0x6235, 0x01bb },
{ 0xba10, 0x2101, 0x1012, 0x01ab }, { 0x1100, 0x0000, 0x0000, 0x0011 },
};