很好用光立方程序#include"3d8.h"
#include<reg52.h>
#include<intrins.h>
#define CHAR_NUM 34
uchar code table[CHAR_NUM][8] =
{{0xA1,0x3E,0x01,0x81,0x85,0xBD,0xC1,0x01}, //1 辽
{0x04,0x44,0x44,0x7C,0x44,0x44,0x04,0x00}, //2 工
{0x22,0x24,0x28,0xF0,0x28,0x24,0x22,0x02}, //3 大
{0x00,0xFE,0x92,0x92,0x92,0x82,0x82,0x00}, //4 E
{0x00,0x00,0x63,0x85,0x89,0x91,0x63,0x00}, //5 2
{0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x00}, //6 -
{0x00,0x0C,0x34,0x44,0xFF,0x04,0x04,0x00}, //7 4
{0x00,0x7E,0x81,0x81,0x81,0x81,0x7E,0x00}, //8 0
{0x00,0x81,0x91,0x91,0x91,0x91,0x7E,0x00}, //9 3
{0x11,0x52,0x54,0x78,0x54,0x52,0x11,0x01}, //10 天
{0x11,0x52,0x54,0x78,0x54,0x52,0x11,0x01}, //11 天
{0x11,0x52,0x7C,0x50,0x7F,0x50,0x10,0x00}, //12 开
{0x38,0x7C,0x3E,0x3F,0x3E,0x7C,0x38,0x00}, //13 心
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, //14
{0x00,0x7E,0x81,0x81,0x81,0x89,0x4E,0x08}, //15 G
{0x00,0x7E,0x81,0x81,0x81,0x81,0x7E,0x00}, //16 O
{0x00,0x7E,0x81,0x81,0x81,0x81,0x7E,0x00}, //17 O
{0x00,0xFF,0x81,0x81,0x81,0x42,0x3C,0x00}, //18 D
{0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x00}, //19 -
{0x00,0xFF,0x01,0x01,0x01,0x01,0x01,0x00}, //20 L
{0x00,0xFE,0x01,0x01,0x01,0x01,0xFE,0x00}, //21 U
{0x00,0x7E,0x81,0x81,0x81,0x42,0x00,0x00}, //22 C
{0x00,0xFF,0x10,0x28,0x44,0x82,0x00,0x00}, //23 K
{0x00,0x00,0x70,0xFD,0x70,0x00,0x00,0x00}, //24 !
{0x00,0xFF,0x01,0x01,0x01,0x01,0x01,0x00}, //25 L
{0x00,0xFF,0x91,0x91,0x91,0x91,0x81,0x00}, //26 E
{0x00,0xFF,0x81,0x81,0x81,0x42,0x3C,0x00}, //27 D
{0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x00}, //28 -
{0x00,0x62,0x91,0x89,0x89,0x46,0x00,0x00}, //29 S
{0x00,0x7E,0x81,0x81,0x81,0x42,0x00,0x00}, //30 C
{0x00,0x7F,0x88,0x88,0x8C,0x72,0x01,0x00}, //31 R
{0x00,0xFF,0x91,0x91,0x91,0x91,0x81,0x00}, //32 E
{0x00,0xFF,0x91,0x91,0x91,0x91,0x81,0x00}, //33 E
{0x00,0xFF,0x40,0x30,0x0C,0x02,0xFF,0x00}};//34 N
uchar code num_table[10][8] =
{
{0x00,0x7E,0x81,0x81,0x81,0x81,0x7E,0x00}, ///0
{0x00,0x01,0x41,0xFF,0xFF,0x01,0x01,0x00}, ///1
{0x00,0x00,0x63,0x85,0x89,0x91,0x63,0x00}, ///2
{0x00,0x81,0x91,0x91,0x91,0x91,0x7E,0x00}, ///3
{0x00,0x0C,0x34,0x44,0xFF,0x04,0x04,0x00}, ///4
{0x00,0xE2,0x91,0x91,0x91,0x91,0x8E,0x00}, ///5
{0x00,0x7E,0x91,0x91,0x91,0x91,0x4E,0x00}, ///6
{0x00,0xC0,0x80,0x8F,0x90,0xA0,0xC0,0x00}, ///7
{0x00,0x6E,0x91,0x91,0x91,0x91,0x6E,0x00}, ///8
{0x00,0x72,0x89,0x89,0x89,0x89,0x7E,0x00} ///9
};
uchar code love_table[4][8]=
{
{0x00,0xFF,0x01,0x01,0x01,0x01,0x01,0x00},//L
{0x38,0x44,0x42,0x21,0x42,0x44,0x38,0x00},//O
{0x00,0x7C,0x02,0x01,0x01,0x02,0x7C,0x00},//V
{0x00,0xFF,0x91,0x91,0x91,0x91,0x81,0x00},//E
};
uchar code heart_table[2][8]=
{
{0x38,0x7C,0x3E,0x3F,0x3E,0x7C,0x38,0x00},
{0x00,0x18,0x3C,0x1E,0x3C,0x18,0x00,0x00},//心形码