§ Внешний вид


§ Код для Си

Если для AVR, то надо добавить после zxfont[] ключевое слово PROGMEM. Всего 96 символов, начиная с 0x20 и заканчивая 0x7F.
1static const unsigned char zxfont[] = {
2    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
3    0x00,0x10,0x10,0x10,0x10,0x00,0x10,0x00,
4    0x00,0x24,0x24,0x00,0x00,0x00,0x00,0x00,
5    0x00,0x24,0x7E,0x24,0x24,0x7E,0x24,0x00,
6    0x00,0x08,0x3E,0x28,0x3E,0x0A,0x3E,0x08,
7    0x00,0x62,0x64,0x08,0x10,0x26,0x46,0x00,
8    0x00,0x10,0x28,0x10,0x2A,0x44,0x3A,0x00,
9    0x00,0x08,0x10,0x00,0x00,0x00,0x00,0x00,
10    0x00,0x04,0x08,0x08,0x08,0x08,0x04,0x00,
11    0x00,0x20,0x10,0x10,0x10,0x10,0x20,0x00,
12    0x00,0x00,0x14,0x08,0x3E,0x08,0x14,0x00,
13    0x00,0x00,0x08,0x08,0x3E,0x08,0x08,0x00,
14    0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x10,
15    0x00,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,
16    0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,
17    0x00,0x00,0x02,0x04,0x08,0x10,0x20,0x00,
18    0x00,0x3C,0x46,0x4A,0x52,0x62,0x3C,0x00,
19    0x00,0x18,0x28,0x08,0x08,0x08,0x3E,0x00,
20    0x00,0x3C,0x42,0x02,0x3C,0x40,0x7E,0x00,
21    0x00,0x3C,0x42,0x0C,0x02,0x42,0x3C,0x00,
22    0x00,0x08,0x18,0x28,0x48,0x7E,0x08,0x00,
23    0x00,0x7E,0x40,0x7C,0x02,0x42,0x3C,0x00,
24    0x00,0x3C,0x40,0x7C,0x42,0x42,0x3C,0x00,
25    0x00,0x7E,0x02,0x04,0x08,0x10,0x10,0x00,
26    0x00,0x3C,0x42,0x3C,0x42,0x42,0x3C,0x00,
27    0x00,0x3C,0x42,0x42,0x3E,0x02,0x3C,0x00,
28    0x00,0x00,0x00,0x10,0x00,0x00,0x10,0x00,
29    0x00,0x00,0x10,0x00,0x00,0x10,0x10,0x20,
30    0x00,0x00,0x04,0x08,0x10,0x08,0x04,0x00,
31    0x00,0x00,0x00,0x3E,0x00,0x3E,0x00,0x00,
32    0x00,0x00,0x10,0x08,0x04,0x08,0x10,0x00,
33    0x00,0x3C,0x42,0x04,0x08,0x00,0x08,0x00,
34    0x00,0x3C,0x4A,0x56,0x5E,0x40,0x3C,0x00,
35    0x00,0x3C,0x42,0x42,0x7E,0x42,0x42,0x00,
36    0x00,0x7C,0x42,0x7C,0x42,0x42,0x7C,0x00,
37    0x00,0x3C,0x42,0x40,0x40,0x42,0x3C,0x00,
38    0x00,0x78,0x44,0x42,0x42,0x44,0x78,0x00,
39    0x00,0x7E,0x40,0x7C,0x40,0x40,0x7E,0x00,
40    0x00,0x7E,0x40,0x7C,0x40,0x40,0x40,0x00,
41    0x00,0x3C,0x42,0x40,0x4E,0x42,0x3C,0x00,
42    0x00,0x42,0x42,0x7E,0x42,0x42,0x42,0x00,
43    0x00,0x3E,0x08,0x08,0x08,0x08,0x3E,0x00,
44    0x00,0x02,0x02,0x02,0x42,0x42,0x3C,0x00,
45    0x00,0x44,0x48,0x70,0x48,0x44,0x42,0x00,
46    0x00,0x40,0x40,0x40,0x40,0x40,0x7E,0x00,
47    0x00,0x42,0x66,0x5A,0x42,0x42,0x42,0x00,
48    0x00,0x42,0x62,0x52,0x4A,0x46,0x42,0x00,
49    0x00,0x3C,0x42,0x42,0x42,0x42,0x3C,0x00,
50    0x00,0x7C,0x42,0x42,0x7C,0x40,0x40,0x00,
51    0x00,0x3C,0x42,0x42,0x52,0x4A,0x3C,0x00,
52    0x00,0x7C,0x42,0x42,0x7C,0x44,0x42,0x00,
53    0x00,0x3C,0x40,0x3C,0x02,0x42,0x3C,0x00,
54    0x00,0xFE,0x10,0x10,0x10,0x10,0x10,0x00,
55    0x00,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,
56    0x00,0x42,0x42,0x42,0x42,0x24,0x18,0x00,
57    0x00,0x42,0x42,0x42,0x42,0x5A,0x24,0x00,
58    0x00,0x42,0x24,0x18,0x18,0x24,0x42,0x00,
59    0x00,0x82,0x44,0x28,0x10,0x10,0x10,0x00,
60    0x00,0x7E,0x04,0x08,0x10,0x20,0x7E,0x00,
61    0x00,0x0E,0x08,0x08,0x08,0x08,0x0E,0x00,
62    0x00,0x00,0x40,0x20,0x10,0x08,0x04,0x00,
63    0x00,0x70,0x10,0x10,0x10,0x10,0x70,0x00,
64    0x00,0x10,0x38,0x54,0x10,0x10,0x10,0x00,
65    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
66    0x00,0x1C,0x22,0x78,0x20,0x20,0x7E,0x00,
67    0x00,0x00,0x38,0x04,0x3C,0x44,0x3C,0x00,
68    0x00,0x20,0x20,0x3C,0x22,0x22,0x3C,0x00,
69    0x00,0x00,0x1C,0x20,0x20,0x20,0x1C,0x00,
70    0x00,0x04,0x04,0x3C,0x44,0x44,0x3C,0x00,
71    0x00,0x00,0x38,0x44,0x78,0x40,0x3C,0x00,
72    0x00,0x0C,0x10,0x18,0x10,0x10,0x10,0x00,
73    0x00,0x00,0x3C,0x44,0x44,0x3C,0x04,0x38,
74    0x00,0x40,0x40,0x78,0x44,0x44,0x44,0x00,
75    0x00,0x10,0x00,0x30,0x10,0x10,0x38,0x00,
76    0x00,0x04,0x00,0x04,0x04,0x04,0x24,0x18,
77    0x00,0x20,0x28,0x30,0x30,0x28,0x24,0x00,
78    0x00,0x10,0x10,0x10,0x10,0x10,0x0C,0x00,
79    0x00,0x00,0x68,0x54,0x54,0x54,0x54,0x00,
80    0x00,0x00,0x78,0x44,0x44,0x44,0x44,0x00,
81    0x00,0x00,0x38,0x44,0x44,0x44,0x38,0x00,
82    0x00,0x00,0x78,0x44,0x44,0x78,0x40,0x40,
83    0x00,0x00,0x3C,0x44,0x44,0x3C,0x04,0x06,
84    0x00,0x00,0x1C,0x20,0x20,0x20,0x20,0x00,
85    0x00,0x00,0x38,0x40,0x38,0x04,0x78,0x00,
86    0x00,0x10,0x38,0x10,0x10,0x10,0x0C,0x00,
87    0x00,0x00,0x44,0x44,0x44,0x44,0x38,0x00,
88    0x00,0x00,0x44,0x44,0x28,0x28,0x10,0x00,
89    0x00,0x00,0x44,0x54,0x54,0x54,0x28,0x00,
90    0x00,0x00,0x44,0x28,0x10,0x28,0x44,0x00,
91    0x00,0x00,0x44,0x44,0x44,0x3C,0x04,0x38,
92    0x00,0x00,0x7C,0x08,0x10,0x20,0x7C,0x00,
93    0x00,0x0E,0x08,0x30,0x08,0x08,0x0E,0x00,
94    0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x00,
95    0x00,0x70,0x10,0x0C,0x10,0x10,0x70,0x00,
96    0x00,0x14,0x28,0x00,0x00,0x00,0x00,0x00,
97    0x3C,0x42,0x99,0xA1,0xA1,0x99,0x42,0x3C
98};

§ Конвертер PHP

1$im = imagecreatetruecolor(128,48);
2for ($i = 0; $i < 96; $i++)
3for ($j = 0; $j < 8; $j++)
4for ($k = 0; $k < 8; $k++)
5    imagesetpixel($im,
6        ($i & 15)*8 + $k,
7        ($i >> 4)*8 + $j,
8        ($font[8*$i+$j] << $k) & 128 ? 0x000000 : 0xcccccc);
9
10imagepng($im, "zxfont.png");