Board-dat/DVA/DVA1007-DAT/DVA1007-DAT.md
... ...
@@ -64,3 +64,7 @@ FT232 Programming Port
64 64
65 65
- low power - https://x.com/electro_phoenix/status/1639160253811142656
66 66
67
+
68
+## ref
69
+
70
+- [[DVA1007]]
... ...
\ No newline at end of file
Board-dat/ILC/ILC1007-dat/ILC1007-dat.md
... ...
@@ -17,4 +17,7 @@ with back PCB, 5VIN
17 17
18 18
- [[ILC1008-dat]] - [[chars-dat]]
19 19
20
+- [[UC1701X-dat]]
21
+
22
+
20 23
- [[ILC1007]]
... ...
\ No newline at end of file
Chip-dat/UC1701X-dat/UC1701X-code-dat.c
... ...
@@ -0,0 +1,581 @@
1
+
2
+// UC1701X-code-dat.c
3
+
4
+*/
5
+#include <reg52.H>
6
+#include <intrins.h>
7
+#include <Ctype.h>
8
+
9
+sbit key=P3^4;
10
+sbit cs1=P3^1;
11
+sbit rs=P3^0;
12
+sbit reset=P1^0;
13
+sbit sclk=P3^1;
14
+sbit sid=P3^2;//sid 对应液晶模块的 SDA 引脚
15
+#define uchar unsigned char
16
+#define uint unsigned int
17
+#define ulong unsigned long
18
+uchar code ascii_table_8x16[95][16];
19
+uchar code ascii_table_5x7[95][5];
20
+
21
+uchar code cheng1[]={
22
+/*-- 文字: 成 --*/
23
+/*-- 宋体 23; 此字体下对应的点阵为:宽 x 高=31x31 --*/
24
+/*-- 高度不是 8 的倍数,现调整为:宽度 x 高度=32x32 --*/
25
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,
26
+0xFC,0xFC,0x88,0x00,0x00,0x1C,0x78,0xF0,0xE0,0x00,0x80,0x80,0x00,0x00,0x00,0x00,
27
+0x00,0x00,0x00,0x00,0xFF,0xFF,0x83,0x83,0x83,0x83,0x83,0x83,0xC3,0xC3,0x03,0x1F,
28
+0xFF,0xFF,0x83,0x03,0x03,0x03,0xC3,0xF3,0xF3,0x63,0x03,0x03,0x00,0x00,0x00,0x00,
29
+0x00,0x00,0xFC,0xFF,0x3F,0x00,0x80,0x00,0x00,0x80,0xFF,0xFF,0x03,0x00,0x00,0x03,
30
+0x9F,0xFF,0xF8,0xF8,0xBE,0x1F,0x07,0x01,0x00,0x00,0xE0,0x20,0x00,0x00,0x20,0x38,
31
+0x1F,0x07,0x01,0x00,0x00,0x01,0x01,0x07,0x07,0x23,0x31,0x18,0x0C,0x0E,0x07,0x03,
32
+0x01,0x01,0x01,0x03,0x07,0x0F,0x0E,0x1C,0x1F,0x3F,0x30,0x00,0x00,0x00,0x00,0x00};
33
+uchar code zhuang1[]={
34
+/*-- 文字: 状 --*/
35
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=16x16 --*/
36
+0x08,0x30,0x00,0xFF,0x20,0x20,0x20,0x20,0xFF,0x20,0xE1,0x26,0x2C,0x20,0x20,0x00,
37
+0x04,0x02,0x01,0xFF,0x40,0x20,0x18,0x07,0x00,0x00,0x03,0x0C,0x30,0x60,0x20,0x00};
38
+uchar code tai1[]={
39
+/*-- 文字: 态 --*/
40
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=16x16 --*/
41
+0x00,0x04,0x04,0x04,0x84,0x44,0x34,0x4F,0x94,0x24,0x44,0x84,0x84,0x04,0x00,0x00,
42
+0x00,0x60,0x39,0x01,0x00,0x3C,0x40,0x42,0x4C,0x40,0x40,0x70,0x04,0x09,0x31,0x00};
43
+uchar code shi1[]={
44
+/*-- 文字: 使 --*/
45
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=16x16 --*/
46
+0x40,0x20,0xF0,0x1C,0x07,0xF2,0x94,0x94,0x94,0xFF,0x94,0x94,0x94,0xF4,0x04,0x00,
47
+0x00,0x00,0x7F,0x00,0x40,0x41,0x22,0x14,0x0C,0x13,0x10,0x30,0x20,0x61,0x20,0x00};
48
+uchar code yong1[]={
49
+/*-- 文字: 用 --*/
50
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=16x16 --*/
51
+0x00,0x00,0x00,0xFE,0x22,0x22,0x22,0x22,0xFE,0x22,0x22,0x22,0x22,0xFE,0x00,0x00,
52
+0x80,0x40,0x30,0x0F,0x02,0x02,0x02,0x02,0xFF,0x02,0x02,0x42,0x82,0x7F,0x00,0x00};
53
+uchar code mao_hao[]={
54
+/*-- 文字: : (冒号) --*/
55
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
56
+0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00};
57
+char code num0[]={
58
+/*-- 文字: 0 --*/
59
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
60
+0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00
61
+};
62
+char code num1[]={
63
+/*-- 文字: 1 --*/
64
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
65
+0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00
66
+};
67
+char code num2[]={
68
+/*-- 文字: 2 --*/
69
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
70
+0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00
71
+};
72
+char code num3[]={
73
+/*-- 文字: 3 --*/
74
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
75
+0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00
76
+};
77
+char code num4[]={
78
+/*-- 文字: 4 --*/
79
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
80
+0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00
81
+};
82
+
83
+char code num5[]={
84
+/*-- 文字: 5 --*/
85
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
86
+0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00
87
+};
88
+
89
+char code num6[]={
90
+/*-- 文字: 6 --*/
91
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
92
+0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00
93
+};
94
+char code num7[]={
95
+/*-- 文字: 7 --*/
96
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
97
+0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00
98
+};
99
+char code num8[]={
100
+/*-- 文字: 8 --*/
101
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
102
+0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00
103
+};
104
+
105
+char code num9[]={
106
+/*-- 文字: 9 --*/
107
+/*-- 宋体 12; 此字体下对应的点阵为:宽 x 高=8x16 --*/
108
+0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00
109
+};
110
+
111
+
112
+/*写指令到 LCD 模块*/
113
+void transfer_command(int data1)
114
+{
115
+ char i;
116
+ cs1=0;
117
+ rs=0;
118
+ for(i=0;i<8;i++)
119
+ {
120
+ sclk=0;
121
+ if(data1&0x80) sid=1;
122
+ else sid=0;
123
+ sclk=1;
124
+ data1=data1<<=1;
125
+ }
126
+}
127
+
128
+/*写数据到 LCD 模块*/
129
+void transfer_data(int data1)
130
+{
131
+ char i;
132
+ cs1=0;
133
+ rs=1;
134
+ for(i=0;i<8;i++)
135
+ {
136
+ sclk=0;
137
+ if(data1&0x80) sid=1;
138
+ else sid=0;
139
+ sclk=1;
140
+ data1=data1<<=1;
141
+ }
142
+}
143
+
144
+/*延时*/
145
+void delay(int i)
146
+{
147
+ int j,k;
148
+ for(j=0;j<i;j++)
149
+ for(k=0;k<110;k++);
150
+}
151
+
152
+void waitkey()
153
+{
154
+repeat: if(key==1)
155
+ goto repeat;
156
+ else
157
+ delay(40);
158
+}
159
+
160
+/*LCD 模块初始化*/
161
+void initial_lcd()
162
+{
163
+ cs1=0;
164
+ reset=0; /*低电平复位*/
165
+ delay(100);
166
+ reset=1; /*复位完毕*/
167
+ delay(20);
168
+ transfer_command(0xe2); /*软复位*/
169
+ delay(5);
170
+ transfer_command(0x2c); /*升压步聚 1*/
171
+ delay(5);
172
+ transfer_command(0x2e); /*升压步聚 2*/
173
+ delay(5);
174
+ transfer_command(0x2f); /*升压步聚 3*/
175
+ delay(5);
176
+ transfer_command(0x23); /*粗调对比度,可设置范围 0x20~0x27*/
177
+ transfer_command(0x81); /*微调对比度*/
178
+ transfer_command(0x28); /*0x1a,微调对比度的值,可设置范围 0x00~0x3f*/
179
+ transfer_command(0xa2); /*1/9 偏压比(bias)*/
180
+ transfer_command(0xc8); /*行扫描顺序:从上到下*/
181
+ transfer_command(0xa0); /*列扫描顺序:从左到右*/
182
+ transfer_command(0x40); /*起始行:第一行开始*/
183
+ transfer_command(0xaf); /*开显示*/
184
+ cs1=1;
185
+}
186
+
187
+
188
+void lcd_address(uchar page,uchar column)
189
+{
190
+ cs1=0;
191
+ column=column-1; //我们平常所说的第 1 列,在 LCD 驱动 IC 里是第 0 列。所以在这里减去 1.
192
+ page=page-1;
193
+ transfer_command(0xb0+page); //设置页地址。每页是 8 行。一个画面的 64 行被分成 8 个页。我们平常所说的第 1 页,在 LCD 驱动 IC 里是第 0 页,所以
194
+在这里减去 1*/
195
+ transfer_command(((column>>4)&0x0f)+0x10); //设置列地址的高 4 位
196
+ transfer_command(column&0x0f); //设置列地址的低 4 位
197
+}
198
+
199
+/*全屏清屏*/
200
+void clear_screen()
201
+{
202
+ unsigned char i,j;
203
+ cs1=0;
204
+ for(i=0;i<9;i++)
205
+ {
206
+ lcd_address(1+i,1);
207
+ for(j=0;j<132;j++)
208
+ {
209
+ transfer_data(0x00);
210
+ }
211
+ }
212
+ cs1=1;
213
+}
214
+
215
+
216
+
217
+//==================display a piture of 128*64 dots================
218
+void full_display()
219
+{
220
+ int i,j;
221
+ for(i=0;i<8;i++)
222
+ {
223
+ cs1=0;
224
+ lcd_address(i+1,0);
225
+ for(j=0;j<128;j++)
226
+ {
227
+ transfer_data(0xff);
228
+ }
229
+ }
230
+}
231
+
232
+
233
+/*显示 32x32 点阵图像、汉字、生僻字或 32x32 点阵的其他图标*/
234
+void display_graphic_32x32(uchar page,uchar column,uchar *dp)
235
+{
236
+ uchar i,j;
237
+ cs1=0;
238
+ for(j=0;j<4;j++)
239
+ {
240
+ lcd_address(page+j,column);
241
+ for (i=0;i<31;i++)
242
+ {
243
+ transfer_data(*dp); /*写数据到 LCD,每写完一个 8 位的数据后列地址自动加 1*/
244
+ dp++;
245
+ }
246
+ }
247
+ cs1=1;
248
+}
249
+
250
+/*显示 16x16 点阵图像、汉字、生僻字或 16x16 点阵的其他图标*/
251
+void display_graphic_16x16(uchar page,uchar column,uchar *dp)
252
+{
253
+ uchar i,j;
254
+
255
+ cs1=0;
256
+ for(j=0;j<2;j++)
257
+ {
258
+ lcd_address(page+j,column);
259
+ for (i=0;i<16;i++)
260
+ {
261
+ transfer_data(*dp); /*写数据到 LCD,每写完一个 8 位的数据后列地址自动加 1*/
262
+ dp++;
263
+ }
264
+ }
265
+ cs1=1;
266
+}
267
+
268
+/*显示 8x16 点阵图像、ASCII, 或 8x16 点阵的自造字符、其他图标*/
269
+void display_graphic_8x16(uchar page,uchar column,uchar *dp)
270
+{
271
+ uchar i,j;
272
+ cs1=0;
273
+ for(j=0;j<2;j++)
274
+ {
275
+ lcd_address(page+j,column);
276
+ for (i=0;i<8;i++)
277
+ {
278
+ transfer_data(*dp); /*写数据到 LCD,每写完一个 8 位的数据后列地址自动加 1*/
279
+ dp++;
280
+ }
281
+ }
282
+ cs1=1;
283
+}
284
+void display_string_8x16(uint page,uint column,uchar *text)
285
+{
286
+ uint i=0,j,k,n;
287
+ cs1=0;
288
+ while(text[i]>0x00)
289
+ {
290
+ if((text[i]>=0x20)&&(text[i]<=0x7e))
291
+ {
292
+ j=text[i]-0x20;
293
+ for(n=0;n<2;n++)
294
+ {
295
+ lcd_address(page+n,column);
296
+ for(k=0;k<8;k++)
297
+ {
298
+ transfer_data(ascii_table_8x16[j][k+8*n]);/*显示 5x7 的 ASCII 字到 LCD 上,y 为页地址,x 为列地址,最后为数据*/
299
+ }
300
+ }
301
+ i++;
302
+ column+=8;
303
+
304
+ }
305
+ else
306
+ i++;
307
+ }
308
+}
309
+
310
+void display_string_5x7(uint page,uint column,uchar *text)
311
+{
312
+ uint i=0,j,k;
313
+ cs1=0;
314
+ while(text[i]>0x00)
315
+ {
316
+ if((text[i]>=0x20)&&(text[i]<0x7e))
317
+ {
318
+ j=text[i]-0x20;
319
+ lcd_address(page,column);
320
+ for(k=0;k<5;k++)
321
+ {
322
+ transfer_data(ascii_table_5x7[j][k]);/*显示 5x7 的 ASCII 字到 LCD 上,y 为页地址,x 为列地址,最后为数据*/
323
+ }
324
+ i++;
325
+ column+=6;
326
+ }
327
+ else
328
+ i++;
329
+ }
330
+}
331
+
332
+void main(void)
333
+{
334
+
335
+ while(1)
336
+ {
337
+ initial_lcd();
338
+ clear_screen(); //clear all dots
339
+ display_graphic_32x32(1,1,cheng1); /*在第 1 页,第 49 列显示单个汉字"成"*/
340
+ //delay(2000);
341
+ waitkey();
342
+ clear_screen(); //clear all dots
343
+ display_graphic_16x16(5,1,zhuang1); /*在第 5 页,第 1 列显示单个汉字"状"*/
344
+ display_graphic_16x16(5,(1+16),tai1); /*在第 5 页,第 17 列显示单个汉字"态"*/
345
+ display_graphic_8x16(5,(1+16*2),mao_hao); /*在第 5 页,第 25 列显示单个字符":"*/
346
+ display_graphic_16x16(5,(1+16*2+8),shi1); /*在第 5 页,第 41 列显示单个汉字"使"*/
347
+ display_graphic_16x16(5,(1+16*3+8),yong1); /*在第 5 页,第 49 列显示单个汉字"用"*/
348
+ display_graphic_8x16(5,(89),num0); /*在第 5 页,第 89 列显示单个数字"0"*/
349
+ display_graphic_8x16(5,(89+8*1),num0); /*在第 5 页,第 97 列显示单个数字"0"*/
350
+ display_graphic_8x16(5,(89+8*2),mao_hao); /*在第 5 页,第 105 列显示单个字符":"*/
351
+ display_graphic_8x16(5,(89+8*3),num0); /*在第 5 页,第 113 列显示单个数字"0"*/
352
+ display_graphic_8x16(5,(89+8*4),num0); /*在第 5 页,第 121 列显示单个数字"0"*/
353
+ waitkey();
354
+ //delay(2000);
355
+ clear_screen(); //clear all dots
356
+ display_string_8x16(1,1,"0123456789abcdef");/*在第 1 页,第 1 列显示字符串*/
357
+ display_string_8x16(3,1,"~`!@#$%^&*()_-+=");/*在第*页,第*列显示字符串*/
358
+ display_string_5x7(5,1," ! #$%&'()*+,-./01234");
359
+ display_string_5x7(6,1,"56789:;<=>?@ABCDEFGHI");
360
+ display_string_5x7(7,1,"JKLMNOPQRSTUVWXYZ[\]^");
361
+ display_string_5x7(8,1,"_`abcdefghijklmnopqrs");
362
+ waitkey();
363
+
364
+ //delay(2000);
365
+ }
366
+}
367
+
368
+
369
+
370
+//纵向取模,适合 ST7565P,ST7565R,ST7567,UC1701X,KS0108 等驱动 IC 的液晶模块使用
371
+
372
+char code ascii_table_8x16[95][16]={
373
+
374
+//粗体 8x16 点阵的 ASCII 码的点阵数据,从"JLX-GB2312"型号的字库 IC 中读出来的国标的。
375
+0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, //- -(即“空格”)ASCII 码:0X20
376
+0x00,0x00,0x38,0xFC, 0xFC,0x38,0x00,0x00, 0x00,0x00,0x00,0x0D, 0x0D,0x00,0x00,0x00, //-!- ASCII 码:0X21
377
+0x00,0x0E,0x1E,0x00, 0x00,0x1E,0x0E,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, //-"-
378
+0x20,0xF8,0xF8,0x20, 0xF8,0xF8,0x20,0x00, 0x02,0x0F,0x0F,0x02, 0x0F,0x0F,0x02,0x00, //-#-
379
+0x38,0x7C,0x44,0x47, 0x47,0xCC,0x98,0x00, 0x06,0x0C,0x08,0x38, 0x38,0x0F,0x07,0x00, //-$-
380
+0x30,0x30,0x00,0x80, 0xC0,0x60,0x30,0x00, 0x0C,0x06,0x03,0x01, 0x00,0x0C,0x0C,0x00, //-%-
381
+0x80,0xD8,0x7C,0xE4, 0xBC,0xD8,0x40,0x00, 0x07,0x0F,0x08,0x08, 0x07,0x0F,0x08,0x00, //-&-
382
+0x00,0x10,0x1E,0x0E, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, //-'-
383
+0x00,0x00,0xF0,0xF8, 0x0C,0x04,0x00,0x00, 0x00,0x00,0x03,0x07, 0x0C,0x08,0x00,0x00, //-(-
384
+0x00,0x00,0x04,0x0C, 0xF8,0xF0,0x00,0x00, 0x00,0x00,0x08,0x0C, 0x07,0x03,0x00,0x00, //-)-
385
+
386
+0x80,0xA0,0xE0,0xC0, 0xC0,0xE0,0xA0,0x80, 0x00,0x02,0x03,0x01, 0x01,0x03,0x02,0x00, //-*- ASCII 码:0X2A
387
+0x00,0x80,0x80,0xE0, 0xE0,0x80,0x80,0x00, 0x00,0x00,0x00,0x03, 0x03,0x00,0x00,0x00, //-+-
388
+0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x1E, 0x0E,0x00,0x00,0x00, //-,-
389
+0x80,0x80,0x80,0x80, 0x80,0x80,0x80,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, //---
390
+0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x0C, 0x0C,0x00,0x00,0x00, //-.-
391
+0x00,0x00,0x00,0x80, 0xC0,0x60,0x30,0x00, 0x0C,0x06,0x03,0x01, 0x00,0x00,0x00,0x00, //-/-
392
+0xF8,0xF8,0x0C,0xC4, 0x0C,0xF8,0xF0,0x00, 0x03,0x07,0x0C,0x08, 0x0C,0x07,0x03,0x00, //-0- ASCII 码:0X30
393
+0x00,0x10,0x18,0xFC, 0xFC,0x00,0x00,0x00, 0x00,0x08,0x08,0x0F, 0x0F,0x08,0x08,0x00, //-1-
394
+0x08,0x0C,0x84,0xC4, 0x64,0x3C,0x18,0x00, 0x0E,0x0F,0x09,0x08, 0x08,0x0C,0x0C,0x00, //-2-
395
+0x08,0x0C,0x44,0x44, 0x44,0xFC,0xB8,0x00, 0x04,0x0C,0x08,0x08, 0x08,0x0F,0x07,0x00, //-3-
396
+
397
+0xC0,0xE0,0xB0,0x98, 0xFC,0xFC,0x80,0x00, 0x00,0x00,0x00,0x08, 0x0F,0x0F,0x08,0x00, //-4- ASCII 码:0X34
398
+0x7C,0x7C,0x44,0x44, 0x44,0xC4,0x84,0x00, 0x04,0x0C,0x08,0x08, 0x08,0x0F,0x07,0x00, //-5-
399
+0xF0,0xF8,0x4C,0x44, 0x44,0xC0,0x80,0x00, 0x07,0x0F,0x08,0x08, 0x08,0x0F,0x07,0x00, //-6-
400
+0x0C,0x0C,0x04,0x84, 0xC4,0x7C,0x3C,0x00, 0x00,0x00,0x0F,0x0F, 0x00,0x00,0x00,0x00, //-7-
401
+0xB8,0xFC,0x44,0x44, 0x44,0xFC,0xB8,0x00, 0x07,0x0F,0x08,0x08, 0x08,0x0F,0x07,0x00, //-8-
402
+0x38,0x7C,0x44,0x44, 0x44,0xFC,0xF8,0x00, 0x00,0x08,0x08,0x08, 0x0C,0x07,0x03,0x00, //-9-
403
+0x00,0x00,0x00,0x30, 0x30,0x00,0x00,0x00, 0x00,0x00,0x00,0x06, 0x06,0x00,0x00,0x00, //-:-
404
+0x00,0x00,0x00,0x30, 0x30,0x00,0x00,0x00, 0x00,0x00,0x08,0x0E, 0x06,0x00,0x00,0x00, //-;-
405
+0x00,0x80,0xC0,0x60, 0x30,0x18,0x08,0x00, 0x00,0x00,0x01,0x03, 0x06,0x0C,0x08,0x00, //-<-
406
+0x00,0x20,0x20,0x20, 0x20,0x20,0x20,0x00, 0x00,0x01,0x01,0x01, 0x01,0x01,0x01,0x00, //-=-
407
+
408
+0x00,0x08,0x18,0x30, 0x60,0xC0,0x80,0x00, 0x00,0x08,0x0C,0x06, 0x03,0x01,0x00,0x00, //->- ASCII 码:0X3E
409
+0x18,0x1C,0x04,0xC4, 0xE4,0x3C,0x18,0x00, 0x00,0x00,0x00,0x0D, 0x0D,0x00,0x00,0x00, //-?-
410
+0xF0,0xF0,0x08,0xC8, 0xC8,0xF8,0xF0,0x00, 0x07,0x0F,0x08,0x0B, 0x0B,0x0B,0x01,0x00, //-@-
411
+0xE0,0xF0,0x98,0x8C, 0x98,0xF0,0xE0,0x00, 0x0F,0x0F,0x00,0x00, 0x00,0x0F,0x0F,0x00, //-A- ASCII 码:0X41
412
+0x04,0xFC,0xFC,0x44, 0x44,0xFC,0xB8,0x00, 0x08,0x0F,0x0F,0x08, 0x08,0x0F,0x07,0x00, //-B-
413
+0xF0,0xF8,0x0C,0x04, 0x04,0x0C,0x18,0x00, 0x03,0x07,0x0C,0x08, 0x08,0x0C,0x06,0x00, //-C-
414
+0x04,0xFC,0xFC,0x04, 0x0C,0xF8,0xF0,0x00, 0x08,0x0F,0x0F,0x08, 0x0C,0x07,0x03,0x00, //-D-
415
+0x04,0xFC,0xFC,0x44, 0xE4,0x0C,0x1C,0x00, 0x08,0x0F,0x0F,0x08, 0x08,0x0C,0x0E,0x00, //-E-
416
+0x04,0xFC,0xFC,0x44, 0xE4,0x0C,0x1C,0x00, 0x08,0x0F,0x0F,0x08, 0x00,0x00,0x00,0x00, //-F-
417
+0xF0,0xF8,0x0C,0x84, 0x84,0x8C,0x98,0x00, 0x03,0x07,0x0C,0x08, 0x08,0x07,0x0F,0x00, //-G-
418
+
419
+0xFC,0xFC,0x40,0x40, 0x40,0xFC,0xFC,0x00, 0x0F,0x0F,0x00,0x00, 0x00,0x0F,0x0F,0x00, //-H- ASCII 码:0X48
420
+0x00,0x00,0x04,0xFC, 0xFC,0x04,0x00,0x00, 0x00,0x00,0x08,0x0F, 0x0F,0x08,0x00,0x00, //-I-
421
+0x00,0x00,0x00,0x04, 0xFC,0xFC,0x04,0x00, 0x07,0x0F,0x08,0x08, 0x0F,0x07,0x00,0x00, //-J-
422
+0x04,0xFC,0xFC,0xC0, 0xE0,0x3C,0x1C,0x00, 0x08,0x0F,0x0F,0x00, 0x01,0x0F,0x0E,0x00, //-K-
423
+0x04,0xFC,0xFC,0x04, 0x00,0x00,0x00,0x00, 0x08,0x0F,0x0F,0x08, 0x08,0x0C,0x0E,0x00, //-L-
424
+0xFC,0xFC,0x38,0x70, 0x38,0xFC,0xFC,0x00, 0x0F,0x0F,0x00,0x00, 0x00,0x0F,0x0F,0x00, //-M-
425
+0xFC,0xFC,0x38,0x70, 0xE0,0xFC,0xFC,0x00, 0x0F,0x0F,0x00,0x00, 0x00,0x0F,0x0F,0x00, //-N-
426
+0xF8,0xFC,0x04,0x04, 0x04,0xFC,0xF8,0x00, 0x07,0x0F,0x08,0x08, 0x08,0x0F,0x07,0x00, //-O-
427
+0x04,0xFC,0xFC,0x44, 0x44,0x7C,0x38,0x00, 0x08,0x0F,0x0F,0x08, 0x00,0x00,0x00,0x00, //-P-
428
+0xF8,0xFC,0x04,0x04, 0x04,0xFC,0xF8,0x00, 0x07,0x0F,0x08,0x0E, 0x3C,0x3F,0x27,0x00, //-Q-
429
+
430
+0x04,0xFC,0xFC,0x44, 0xC4,0xFC,0x38,0x00, 0x08,0x0F,0x0F,0x00, 0x00,0x0F,0x0F,0x00, //-R-
431
+0x18,0x3C,0x64,0x44, 0xC4,0x9C,0x18,0x00, 0x06,0x0E,0x08,0x08, 0x08,0x0F,0x07,0x00, //-S-
432
+0x00,0x1C,0x0C,0xFC, 0xFC,0x0C,0x1C,0x00, 0x00,0x00,0x08,0x0F, 0x0F,0x08,0x00,0x00, //-T-
433
+0xFC,0xFC,0x00,0x00, 0x00,0xFC,0xFC,0x00, 0x07,0x0F,0x08,0x08, 0x08,0x0F,0x07,0x00, //-U-
434
+0xFC,0xFC,0x00,0x00, 0x00,0xFC,0xFC,0x00, 0x01,0x03,0x06,0x0C, 0x06,0x03,0x01,0x00, //-V-
435
+0xFC,0xFC,0x00,0x00, 0x00,0xFC,0xFC,0x00, 0x07,0x0F,0x0E,0x03, 0x0E,0x0F,0x07,0x00, //-W-
436
+0x0C,0x3C,0xF0,0xE0, 0xF0,0x3C,0x0C,0x00, 0x0C,0x0F,0x03,0x01, 0x03,0x0F,0x0C,0x00, //-X-
437
+0x00,0x0C,0x7C,0xC0, 0xC0,0x7C,0x3C,0x00, 0x00,0x00,0x08,0x0F, 0x0F,0x08,0x00,0x00, //-Y-
438
+0x1C,0x0C,0x84,0xC4, 0x64,0x3C,0x1C,0x00, 0x0E,0x0F,0x09,0x08, 0x08,0x0C,0x0E,0x00, //-Z-
439
+0x00,0x00,0xFC,0xFC, 0x04,0x04,0x00,0x00, 0x00,0x00,0x0F,0x0F, 0x08,0x08,0x00,0x00, //-[-
440
+
441
+0x38,0x70,0xE0,0xC0, 0x80,0x00,0x00,0x00, 0x00,0x00,0x00,0x01, 0x03,0x07,0x0E,0x00, //-\-
442
+0x00,0x00,0x04,0x04, 0xFC,0xFC,0x00,0x00, 0x00,0x00,0x08,0x08, 0x0F,0x0F,0x00,0x00, //-]-
443
+0x08,0x0C,0x06,0x03, 0x06,0x0C,0x08,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, //-^-
444
+0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, //-_-
445
+0x00,0x00,0x03,0x07, 0x04,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, //-`-
446
+0x00,0xA0,0xA0,0xA0, 0xE0,0xC0,0x00,0x00, 0x07,0x0F,0x08,0x08, 0x07,0x0F,0x08,0x00, //-a- ASCII 码:0X61
447
+0x04,0xFC,0xFC,0x20, 0x60,0xC0,0x80,0x00, 0x00,0x0F,0x0F,0x08, 0x08,0x0F,0x07,0x00, //-b-
448
+0xC0,0xE0,0x20,0x20, 0x20,0x60,0x40,0x00, 0x07,0x0F,0x08,0x08, 0x08,0x0C,0x04,0x00, //-c-
449
+0x80,0xC0,0x60,0x24, 0xFC,0xFC,0x00,0x00, 0x07,0x0F,0x08,0x08, 0x07,0x0F,0x08,0x00, //-d-
450
+0xC0,0xE0,0xA0,0xA0, 0xA0,0xE0,0xC0,0x00, 0x07,0x0F,0x08,0x08, 0x08,0x0C,0x04,0x00, //-e-
451
+
452
+0x40,0xF8,0xFC,0x44, 0x0C,0x18,0x00,0x00, 0x08,0x0F,0x0F,0x08, 0x00,0x00,0x00,0x00, //-f-
453
+0xC0,0xE0,0x20,0x20, 0xC0,0xE0,0x20,0x00, 0x27,0x6F,0x48,0x48, 0x7F,0x3F,0x00,0x00, //-g-
454
+0x04,0xFC,0xFC,0x40, 0x20,0xE0,0xC0,0x00, 0x08,0x0F,0x0F,0x00, 0x00,0x0F,0x0F,0x00, //-h-
455
+0x00,0x00,0x20,0xEC, 0xEC,0x00,0x00,0x00, 0x00,0x00,0x08,0x0F, 0x0F,0x08,0x00,0x00, //-i-
456
+0x00,0x00,0x00,0x00, 0x20,0xEC,0xEC,0x00, 0x00,0x30,0x70,0x40, 0x40,0x7F,0x3F,0x00, //-j-
457
+0x04,0xFC,0xFC,0x80, 0xC0,0x60,0x20,0x00, 0x08,0x0F,0x0F,0x01, 0x03,0x0E,0x0C,0x00, //-k-
458
+0x00,0x00,0x04,0xFC, 0xFC,0x00,0x00,0x00, 0x00,0x00,0x08,0x0F, 0x0F,0x08,0x00,0x00, //-l-
459
+0xE0,0xE0,0x60,0xC0, 0x60,0xE0,0xC0,0x00, 0x0F,0x0F,0x00,0x07, 0x00,0x0F,0x0F,0x00, //-m-
460
+0x20,0xE0,0xC0,0x20, 0x20,0xE0,0xC0,0x00, 0x00,0x0F,0x0F,0x00, 0x00,0x0F,0x0F,0x00, //-n-
461
+0xC0,0xE0,0x20,0x20, 0x20,0xE0,0xC0,0x00, 0x07,0x0F,0x08,0x08, 0x08,0x0F,0x07,0x00, //-o-
462
+
463
+0x20,0xE0,0xC0,0x20, 0x20,0xE0,0xC0,0x00, 0x40,0x7F,0x7F,0x48, 0x08,0x0F,0x07,0x00, //-p-
464
+0xC0,0xE0,0x20,0x20, 0xC0,0xE0,0x20,0x00, 0x07,0x0F,0x08,0x48, 0x7F,0x7F,0x40,0x00, //-q-
465
+0x20,0xE0,0xC0,0x60, 0x20,0xE0,0xC0,0x00, 0x08,0x0F,0x0F,0x08, 0x00,0x00,0x00,0x00, //-r-
466
+0x40,0xE0,0xA0,0x20, 0x20,0x60,0x40,0x00, 0x04,0x0C,0x09,0x09, 0x0B,0x0E,0x04,0x00, //-s-
467
+0x20,0x20,0xF8,0xFC, 0x20,0x20,0x00,0x00, 0x00,0x00,0x07,0x0F, 0x08,0x0C,0x04,0x00, //-t-
468
+0xE0,0xE0,0x00,0x00, 0xE0,0xE0,0x00,0x00, 0x07,0x0F,0x08,0x08, 0x07,0x0F,0x08,0x00, //-u-
469
+0x00,0xE0,0xE0,0x00, 0x00,0xE0,0xE0,0x00, 0x00,0x03,0x07,0x0C, 0x0C,0x07,0x03,0x00, //-v-
470
+0xE0,0xE0,0x00,0x80, 0x00,0xE0,0xE0,0x00, 0x07,0x0F,0x0C,0x07, 0x0C,0x0F,0x07,0x00, //-w-
471
+0x20,0x60,0xC0,0x80, 0xC0,0x60,0x20,0x00, 0x08,0x0C,0x07,0x03, 0x07,0x0C,0x08,0x00, //-x-
472
+0xE0,0xE0,0x00,0x00, 0x00,0xE0,0xE0,0x00, 0x47,0x4F,0x48,0x48, 0x68,0x3F,0x1F,0x00, //-y-
473
+
474
+0x60,0x60,0x20,0xA0, 0xE0,0x60,0x20,0x00, 0x0C,0x0E,0x0B,0x09, 0x08,0x0C,0x0C,0x00, //-z- //
475
+0x00,0x40,0x40,0xF8, 0xBC,0x04,0x04,0x00, 0x00,0x00,0x00,0x07, 0x0F,0x08,0x08,0x00, //-{-
476
+0x00,0x00,0x00,0xBC, 0xBC,0x00,0x00,0x00, 0x00,0x00,0x00,0x0F, 0x0F,0x00,0x00,0x00, //-|-
477
+0x00,0x04,0x04,0xBC, 0xF8,0x40,0x40,0x00, 0x00,0x08,0x08,0x0F, 0x07,0x00,0x00,0x00, //-}-
478
+0x08,0x0C,0x04,0x0C, 0x08,0x0C,0x04,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, //-~- ASCII 码:0X7E
479
+
480
+};
481
+
482
+
483
+
484
+char code ascii_table_5x8[95][5]={
485
+/*全体 ASCII 列表:5x8 点阵*/
486
+0x00,0x00,0x00,0x00,0x00,//- - //space
487
+0x00,0x00,0x4f,0x00,0x00,//-!-
488
+0x00,0x07,0x00,0x07,0x00,//-"-
489
+0x14,0x7f,0x14,0x7f,0x14,//-#-
490
+0x24,0x2a,0x7f,0x2a,0x12,//-$-
491
+0x23,0x13,0x08,0x64,0x62,//-%-
492
+0x36,0x49,0x55,0x22,0x50,//-&-
493
+0x00,0x05,0x07,0x00,0x00,//-'-
494
+0x00,0x1c,0x22,0x41,0x00,//-(-
495
+0x00,0x41,0x22,0x1c,0x00,//-)-
496
+0x14,0x08,0x3e,0x08,0x14,//-*-
497
+0x08,0x08,0x3e,0x08,0x08,//-+-
498
+0x00,0x50,0x30,0x00,0x00,//-,-
499
+0x08,0x08,0x08,0x08,0x08,//---
500
+0x00,0x60,0x60,0x00,0x00,//-.-
501
+0x20,0x10,0x08,0x04,0x02,//-/-
502
+0x3e,0x51,0x49,0x45,0x3e,//-0-
503
+0x00,0x42,0x7f,0x40,0x00,//-1-
504
+0x42,0x61,0x51,0x49,0x46,//-2-
505
+0x21,0x41,0x45,0x4b,0x31,//-3-
506
+0x18,0x14,0x12,0x7f,0x10,//-4-
507
+0x27,0x45,0x45,0x45,0x39,//-5-
508
+0x3c,0x4a,0x49,0x49,0x30,//-6-
509
+0x01,0x71,0x09,0x05,0x03,//-7-
510
+0x36,0x49,0x49,0x49,0x36,//-8-
511
+0x06,0x49,0x49,0x29,0x1e,//-9-
512
+0x00,0x36,0x36,0x00,0x00,//-:-
513
+0x00,0x56,0x36,0x00,0x00,//-;-
514
+0x08,0x14,0x22,0x41,0x00,//-<-
515
+0x14,0x14,0x14,0x14,0x14,//-=-
516
+0x00,0x41,0x22,0x14,0x08,//->-
517
+0x02,0x01,0x51,0x09,0x06,//-?-
518
+0x32,0x49,0x79,0x41,0x3e,//-@-
519
+0x7e,0x11,0x11,0x11,0x7e,//-A-
520
+0x7f,0x49,0x49,0x49,0x36,//-B-
521
+0x3e,0x41,0x41,0x41,0x22,//-C-
522
+0x7f,0x41,0x41,0x22,0x1c,//-D-
523
+0x7f,0x49,0x49,0x49,0x41,//-E-
524
+0x7f,0x09,0x09,0x09,0x01,//-F-
525
+0x3e,0x41,0x49,0x49,0x7a,//-G-
526
+0x7f,0x08,0x08,0x08,0x7f,//-H-
527
+0x00,0x41,0x7f,0x41,0x00,//-I-
528
+0x20,0x40,0x41,0x3f,0x01,//-J-
529
+0x7f,0x08,0x14,0x22,0x41,//-K-
530
+0x7f,0x40,0x40,0x40,0x40,//-L-
531
+0x7f,0x02,0x0c,0x02,0x7f,//-M-
532
+0x7f,0x04,0x08,0x10,0x7f,//-N-
533
+0x3e,0x41,0x41,0x41,0x3e,//-O-
534
+0x7f,0x09,0x09,0x09,0x06,//-P-
535
+0x3e,0x41,0x51,0x21,0x5e,//-Q-
536
+0x7f,0x09,0x19,0x29,0x46,//-R-
537
+0x46,0x49,0x49,0x49,0x31,//-S-
538
+0x01,0x01,0x7f,0x01,0x01,//-T-
539
+0x3f,0x40,0x40,0x40,0x3f,//-U-
540
+0x1f,0x20,0x40,0x20,0x1f,//-V-
541
+0x3f,0x40,0x38,0x40,0x3f,//-W-
542
+0x63,0x14,0x08,0x14,0x63,//-X-
543
+0x07,0x08,0x70,0x08,0x07,//-Y-
544
+0x61,0x51,0x49,0x45,0x43,//-Z-
545
+0x00,0x7f,0x41,0x41,0x00,//-[-
546
+0x02,0x04,0x08,0x10,0x20,//-\-
547
+0x00,0x41,0x41,0x7f,0x00,//-]-
548
+0x04,0x02,0x01,0x02,0x04,//-^-
549
+0x40,0x40,0x40,0x40,0x40,//-_-
550
+0x01,0x02,0x04,0x00,0x00,//-`-
551
+0x20,0x54,0x54,0x54,0x78,//-a-
552
+0x7f,0x48,0x48,0x48,0x30,//-b-
553
+0x38,0x44,0x44,0x44,0x44,//-c-
554
+0x30,0x48,0x48,0x48,0x7f,//-d-
555
+0x38,0x54,0x54,0x54,0x58,//-e-
556
+0x00,0x08,0x7e,0x09,0x02,//-f-
557
+0x48,0x54,0x54,0x54,0x3c,//-g-
558
+0x7f,0x08,0x08,0x08,0x70,//-h-
559
+0x00,0x00,0x7a,0x00,0x00,//-i-
560
+0x20,0x40,0x40,0x3d,0x00,//-j-
561
+0x7f,0x20,0x28,0x44,0x00,//-k-
562
+0x00,0x41,0x7f,0x40,0x00,//-l-
563
+0x7c,0x04,0x38,0x04,0x7c,//-m-
564
+0x7c,0x08,0x04,0x04,0x78,//-n-
565
+0x38,0x44,0x44,0x44,0x38,//-o-
566
+0x7c,0x14,0x14,0x14,0x08,//-p-
567
+0x08,0x14,0x14,0x14,0x7c,//-q-
568
+0x7c,0x08,0x04,0x04,0x08,//-r-
569
+0x48,0x54,0x54,0x54,0x24,//-s-
570
+0x04,0x04,0x3f,0x44,0x24,//-t-
571
+0x3c,0x40,0x40,0x40,0x3c,//-u-
572
+0x1c,0x20,0x40,0x20,0x1c,//-v-
573
+0x3c,0x40,0x30,0x40,0x3c,//-w-
574
+0x44,0x28,0x10,0x28,0x44,//-x-
575
+0x04,0x48,0x30,0x08,0x04,//-y-
576
+0x44,0x64,0x54,0x4c,0x44,//-z-
577
+0x08,0x36,0x41,0x41,0x00,//-{-
578
+0x00,0x00,0x77,0x00,0x00,//-|-
579
+0x00,0x41,0x41,0x36,0x08,//-}-
580
+0x04,0x02,0x02,0x02,0x01,//-~-
581
+};
... ...
\ No newline at end of file
Chip-dat/UC1701X-dat/UC1701X-dat.md
... ...
@@ -0,0 +1,4 @@
1
+
2
+# UC1701X-dat
3
+
4
+- [[UC1701X-code-dat.c]]
... ...
\ No newline at end of file