16x16点阵源码以及hex
#include <REGX51.H>
#define uchar unsigned char
#define uint unsigned int
#define out0 P0
#define out2 P2
#define out1 P1
void delay(uint j)
{
uchar i=250;
for(j=30000;j>0;j--)
{
while(--i);
i=100;
}
}
uchar code string[]={
/*-- ??: ? --*/
/*-- ???11; ??????????:?x?=14x14 --*/
/*-- ????8???,????:??x??=16x14 --*/
0x24,0x04,0x48,0x02,0x00,0x01,0xFF,0x1F,0x01,0x10,0x01,0x10,0xFC,0x03,0x00,0x01,
0xC0,0x00,0xFF,0x1F,0x40,0x00,0x40,0x00,0x40,0x00,0x70,0x00,
/*-- ??: ? --*/
/*-- ???11; ??????????:?x?=14x14 --*/
/*-- ????8???,????:??x??=16x14 --*/
0x00,0x00,0xFE,0x0F,0x00,0x08,0x00,0x08,0x08,0x08,0x10,0x08,0x10,0x09,0xC0,0x08,
0x30,0x08,0x0C,0x08,0x03,0x08,0x00,0x08,0x00,0x04,0x00,0x03,
/*-- ??: ? --*/
/*-- ???11; ??????????:?x?=14x14 --*/
/*-- ????8???,????:??x??=16x14 --*/
0xFC,0x07,0x40,0x00,0xFF,0x1F,0x41,0x10,0x5D,0x17,0x40,0x00,0x5C,0x07,0x00,0x00,
0xFE,0x0F,0x42,0x08,0xFE,0x0F,0x42,0x08,0xFE,0x0F,0x02,0x08,
/*-- ??: ? --*/
/*-- ???11; ??????????:?x?=14x14 --*/
/*-- ????8???,????:??x??=16x14 --*/
0x84,0x00,0x84,0x0F,0x44,0x08,0xB5,0x04,0x15,0x03,0xD5,0x1C,0x15,0x02,0x95,0x0F,
0x15,0x02,0x95,0x0F,0x1D,0x02,0xD3,0x1F,0x00,0x02,0x00,0x02,
};
void main()
{
uchar i,j,n;
while(1)
{
for(j=0;j<4;j++)
{
for(n=0;n<40;n++)
{
for(i=0;i<16;i++)
{
out1=i%16;
out0=string[i*2+j*32];
out2=string[i*2+1+j*32];
delay(4);
out0=0xff;
out2=0xff;
}
}
}
}
}
|