-
-
...,0x24,0x04,0x07,0x00,0x00,0x00},
{0x00,0x00,0xF8,0x00,0x50,0x50,0xD0,0x78,0xA0,0xA0,0x08,0x04,0xFC,0x00,0x00,0x00}},
{{0x00,0x00,0x00,0x00,0x78,0x54,0x54,0x55,0x95,0x85,0x99,0xE1,0x01,0x00,0x00,0x00},
{0x00,0x00,0x00,0xF0,0xA8,0xA8,0xA8,0x28,0x48,0x48,0x04,0x0E,0xF0,0x00,0x00,0x00}},
{{0x00,0x00...
-
-
...d4,0xd2,0xcf,0xcd,
0xca,0xc8,0xc5,0xc3,0xc0,0xbe,0xbb,0xb9,0xb7,0xb4,0xb2,0xaf,0xad,0xab,0xa8,0xa6,0xa4,0xa1,0x9f,0x9d,0x9b,0x98,0x96,0x94,
0x92,0x90,0x8d,0x8b,0x89,0x87,0x85,0x83,0x81,0x7f,0x7c,0x7a,0x78,0x76,0x74,0x72,0x70,0x6e,0x6d,0x6b,0x69,0x67,0x65,0x63,
0x61,0x5f,0x5e,0x5c,0x5a,0x58,0x56,0...
-
-
...ode hz0[]=
{
0x00, 0x00, 0xf8, 0x88, 0x99, 0xea, 0x8c, 0xf8, 0x88, 0xcc, 0xab, 0x99, 0x88, 0xf8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xfe, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0xfe, 0x00, 0x00, 0x00, 0x00,
0x20, 0x30, 0xac, 0x63, 0x10, 0x00, 0x40, 0x42, 0x22, 0x22, 0x12, 0x1a, 0x26, 0x42,...
-
-
... 0xe000, 0x7068,
0x0000, 0x0003, 0x2001, 0xe028, 0x0000, 0x0002, 0xe3ff, 0xa038,
0x0000, 0x0003, 0xa203, 0xe000, 0x0000, 0x0001, 0xa280, 0x6000,
0x0000, 0x0000, 0xe2c0, 0x3000, 0x0000, 0x0000, 0x6260, 0x3800,
0x0000, 0x0000, 0x7aa0, 0x2c00, 0x0000, 0x0000, 0x7150, 0x3400,
0x0000, 0x0000, 0...
-
-
...ey=0xf9;
break;
case 0x41: // 1行3列,数字2
key=0xa4;
break;
case 0x81: // 1行4列,数字3
key=0xb0;
break;
case 0x12: // 2行1列,数字4
key=0x99;
break...
-
-
...据,将数字信号转换模拟信号code char seven_seg[] = {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
sbit din = P1^5;
sbit scl = P1^1;
sbit cs = P1^6;
void tlc5615_init(void)
{
cs = 1;
scl = 0;
cs = 0;
}
/*TLC5615转换函数*/
void tlc5615(uint dat)
{
uchar i;
d...
-
-
...de DA[]=
{
//;大 CB4F3
0x20,0x20,0x20,0x20,0x20,0x20,0xA0,0x7F,
0xA0,0x20,0x20,0x20,0x20,0x30,0x20,0x00,
0x00,0x40,0x40,0x20,0x10,0x0C,0x03,0x00,
0x01,0x06,0x08,0x10,0x20,0x60,0x20,0x00
};
uc XUE[]=
{
//;学 CD1A7
0x40,0x30,0x10,0x12,...
-
-
...lt;reg51.h>
sbit P1_0=P1^0;
code unsigned char seven_seg[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,
0x82,0xf8,0x80,0x90};
void delay(unsigned char x)
{
while(x--);
}
void display()
{
unsigned char i;
P0=0xff;//消影
switch(i)
{
case 0:P1_0=0;P1_0=1;P0=0x01;P1_0=0;P...
-
-
...0x3c,0x00,0x00,//w
0x00,0x44,0x28,0x10,0x28,0x44,0x00,0x00,//x
0x00,0x1c,0xa0,0xa0,0x90,0x7c,0x00,0x00,//y
0x00,0x44,0x64,0x54,0x4c,0x44,0x00,0x00,//z(74)
};
/****************************
中文字符表
显示"欢迎使用液晶模块"
******************...
-
-
...FF,0xFF,0xFF,0xFF,0xFF},/*"子",3*//* (16 X 16 , 宋体 )*/{0xFF,0x83,0xBB,0xAB,0xAA,0xAA,0xA9,0xAB,0xAB,0xAA,0xEE,0xD7,0xDB,0xBB,0x7F,0xFF},{0x7F,0x3F,0x7F,0x01,0xFD,0xFD,0xBD,0xBD,0x5D,0xED,0x05,0xED,0xFD,0xFD,0xEB,0xF7},/*"购",4*//* (16 X 16 , 宋体 )*/{0xEF,0xEF,0xAF,0xAE,0x82,0xAD,0x6B,0xEB,0...