📄 lcd.c
字号:
for(i=0;i<2;i++)
{
for(LcdRow=0;LcdRow<8;LcdRow++)
for(LcdCol=0;LcdCol<LCD_LCMLIMIT;LcdCol++)
{
ZHAL_LCD_WR_DATA(dat);
dat=~dat; //
}
Delay_ForLCD(1000);
dat=~dat; //
}
}
//*******************************************************************
//
//*******************************************************************
void ZHAL_LCD_DIS_DOT(void)
{
UINT8 i,dat;
ZHAL_LCD_CLR_RAM();
dat=0x55;
for(i=0;i<2;i++)
{
for(LcdRow=0;LcdRow<8;LcdRow++)
for(LcdCol=0;LcdCol<LCD_LCMLIMIT;LcdCol++)
{
ZHAL_LCD_WR_DATA(dat);
dat=~dat; //
}
Delay_ForLCD(1000);
dat=~dat; //
}
}
//*******************************************************************
//
//*******************************************************************
UINT8 code squ_tab[8]={0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x80};
UINT8 code squ_str1[] = "RadioPulse Inc.";
UINT8 code squ_str2[] = "< TEL > ";
UINT8 code squ_str3[] = "+82-2-478-2963";
UINT8 code squ_str4[] = "www.radiopulse";
UINT8 code squ_str5[] = ".co.kr ";
void ZHAL_LCD_DIS_SQUARE()
{
UINT8 i;
ZHAL_LCD_CLR_RAM();
i=0;
for(LcdRow=0;LcdRow<8;LcdRow++)
{
LcdCol=0;
ZHAL_LCD_WR_DATA(0xFF);
for(LcdCol=1;LcdCol<LCD_LCMLIMIT-1;LcdCol++)
ZHAL_LCD_WR_DATA(squ_tab[i]); //
++i;
ZHAL_LCD_WR_DATA(0xFF); //
}
ZHAL_LCD_DIS_STRING(1,1,squ_str1,14,0);
ZHAL_LCD_DIS_STRING(1,3,squ_str2,14,0);
ZHAL_LCD_DIS_STRING(1,4,squ_str3,14,0);
ZHAL_LCD_DIS_STRING(1,5,squ_str4,14,0);
ZHAL_LCD_DIS_STRING(1,6,squ_str5,14,0);
Delay_ForLCD(1000);
}
//*******************************************************************
//
//*******************************************************************
UINT8 code hz_tab[] =
{
0x10,0x0C,0x14,0xD4,0x54,0x54,0x55,0x56,
0x54,0x54,0x54,0xD4,0x14,0x0C,0x04,0x00,
0x00,0x00,0xFC,0x55,0x55,0x55,0x55,0x7D,
0x55,0x55,0x55,0x55,0xFC,0x00,0x00,0x00, // 富
0x40,0x20,0xD0,0x4C,0x43,0x44,0x48,0xD8,
0x30,0x10,0x00,0xFC,0x00,0x00,0xFF,0x00,
0x00,0x00,0x3F,0x40,0x40,0x42,0x44,0x43,
0x78,0x00,0x00,0x07,0x20,0x40,0x3F,0x00, // 创
0x00,0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,
0x48,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,
0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0x3F,
0x44,0x44,0x44,0x44,0x4F,0x40,0x70,0x00, // 电
0x00,0x00,0x02,0x02,0x02,0x02,0x02,0xE2,
0x12,0x0A,0x06,0x02,0x00,0x80,0x00,0x00,
0x01,0x01,0x01,0x01,0x01,0x41,0x81,0x7F,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00, // 子
0x00,0x04,0x84,0x44,0xE4,0x34,0x2C,0x27,
0x24,0x24,0x24,0xE4,0x04,0x04,0x04,0x00,
0x02,0x01,0x00,0x00,0xFF,0x09,0x09,0x09,
0x29,0x49,0xC9,0x7F,0x00,0x00,0x00,0x00, // 有
0xFE,0x02,0x32,0x4E,0x82,0x00,0xFE,0x4A,
0xCA,0x4A,0x4A,0x4A,0x7E,0x00,0x00,0x00,
0xFF,0x00,0x02,0x04,0x03,0x00,0xFF,0x40,
0x20,0x03,0x0C,0x12,0x21,0x60,0x20,0x00, // 限
0x00,0x00,0x80,0x40,0x30,0x0E,0x84,0x00,
0x00,0x0E,0x10,0x60,0xC0,0x80,0x80,0x00,
0x00,0x01,0x20,0x70,0x28,0x24,0x23,0x31,
0x10,0x10,0x14,0x78,0x30,0x01,0x00,0x00, // 公
0x00,0x10,0x92,0x92,0x92,0x92,0x92,0x92,
0x92,0x92,0x12,0x02,0x02,0xFE,0x00,0x00,
0x00,0x00,0x1F,0x04,0x04,0x04,0x04,0x04,
0x04,0x0F,0x00,0x20,0x40,0x3F,0x00,0x00 // 司
};
//*******************************************************************
//
//*******************************************************************
UINT8 code ASC_8[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //" "=20H
0x00,0x00,0x00,0x4f,0x00,0x00,0x00,0x00, //"!"=21H
0x00,0x00,0x07,0x00,0x07,0x00,0x00,0x00, //"""=22H
0x00,0x14,0x7f,0x14,0x7f,0x14,0x00,0x00, //"#"=23H
0x00,0x24,0x2a,0x7f,0x2a,0x12,0x00,0x00, //"$"=24H
0x00,0x23,0x13,0x08,0x64,0x62,0x00,0x00, //"%"=25H
0x00,0x36,0x49,0x55,0x22,0x50,0x00,0x00, //"&"=26H
0x00,0x00,0x05,0x03,0x00,0x00,0x00,0x00, //"'"=27H
0x00,0x00,0x1c,0x22,0x41,0x00,0x00,0x00, //"("=28H
0x00,0x00,0x41,0x22,0x1c,0x00,0x00,0x00, //")"=29H
0x00,0x14,0x08,0x3e,0x08,0x14,0x00,0x00, //"*"=2AH
0x00,0x08,0x08,0x3e,0x08,0x08,0x00,0x00, //"+"=2BH
0x00,0x00,0x50,0x30,0x00,0x00,0x00,0x00, //","=2CH
0x00,0x08,0x08,0x08,0x08,0x08,0x00,0x00, //"-"=2DH
0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00, //"."=2EH
0x00,0x20,0x10,0x08,0x04,0x02,0x00,0x00, //"/"=2FH
0x00,0x3e,0x51,0x49,0x45,0x3e,0x00,0x00, //"0"=30H
0x00,0x00,0x42,0x7f,0x40,0x00,0x00,0x00, //"1"=31H
0x00,0x42,0x61,0x51,0x49,0x46,0x00,0x00, //"2"=32H
0x00,0x21,0x41,0x45,0x4b,0x31,0x00,0x00, //"3"=33H
0x00,0x18,0x14,0x12,0x7f,0x10,0x00,0x00, //"4"=34H
0x00,0x27,0x45,0x45,0x45,0x39,0x00,0x00, //"5"=35H
0x00,0x3c,0x4a,0x49,0x49,0x30,0x00,0x00, //"6"=36H
0x00,0x01,0x01,0x79,0x05,0x03,0x00,0x00, //"7"=37H
0x00,0x36,0x49,0x49,0x49,0x36,0x00,0x00, //"8"=38H
0x00,0x06,0x49,0x49,0x29,0x1e,0x00,0x00, //"9"=39H
0x00,0x00,0x36,0x36,0x00,0x00,0x00,0x00, //":"=3AH
0x00,0x00,0x56,0x36,0x00,0x00,0x00,0x00, //";"=3BH
0x00,0x08,0x14,0x22,0x41,0x00,0x00,0x00, //"<"=3CH
0x00,0x14,0x14,0x14,0x14,0x14,0x00,0x00, //"="=3DH
0x00,0x00,0x41,0x22,0x14,0x08,0x00,0x00, //">"=3EH
0x00,0x02,0x01,0x51,0x09,0x06,0x00,0x00, //"?"=3FH
0x00,0x32,0x49,0x79,0x41,0x3e,0x00,0x00, //"@"=40H
0x00,0x7e,0x11,0x11,0x11,0x7e,0x00,0x00, //"A"=41H
0x00,0x41,0x7f,0x49,0x49,0x36,0x00,0x00, //"B"=42H
0x00,0x3e,0x41,0x41,0x41,0x22,0x00,0x00, //"C"=43H
0x00,0x41,0x7f,0x41,0x41,0x3e,0x00,0x00, //"D"=44H
0x00,0x7f,0x49,0x49,0x49,0x49,0x00,0x00, //"E"=45H
0x00,0x7f,0x09,0x09,0x09,0x01,0x00,0x00, //"F"=46H
0x00,0x3e,0x41,0x41,0x49,0x7a,0x00,0x00, //"G"=47H
0x00,0x7f,0x08,0x08,0x08,0x7f,0x00,0x00, //"H"=48H
0x00,0x00,0x41,0x7f,0x41,0x00,0x00,0x00, //"I"=49H
0x00,0x20,0x40,0x41,0x3f,0x01,0x00,0x00, //"J"=4AH
0x00,0x7f,0x08,0x14,0x22,0x41,0x00,0x00, //"K"=4BH
0x00,0x7f,0x40,0x40,0x40,0x40,0x00,0x00, //"L"=4CH
0x00,0x7f,0x02,0x0c,0x02,0x7f,0x00,0x00, //"M"=4DH
0x00,0x7f,0x06,0x08,0x30,0x7f,0x00,0x00, //"N"=4EH
0x00,0x3e,0x41,0x41,0x41,0x3e,0x00,0x00, //"O"=4FH
0x00,0x7f,0x09,0x09,0x09,0x06,0x00,0x00, //"P"=50H
0x00,0x3e,0x41,0x51,0x21,0x5e,0x00,0x00, //"Q"=51H
0x00,0x7f,0x09,0x19,0x29,0x46,0x00,0x00, //"R"=52H
0x00,0x26,0x49,0x49,0x49,0x32,0x00,0x00, //"S"=53H
0x00,0x01,0x01,0x7f,0x01,0x01,0x00,0x00, //"T"=54H
0x00,0x3f,0x40,0x40,0x40,0x3f,0x00,0x00, //"U"=55H
0x00,0x1f,0x20,0x40,0x20,0x1f,0x00,0x00, //"V"=56H
0x00,0x7f,0x20,0x18,0x20,0x7f,0x00,0x00, //"W"=57H
0x00,0x63,0x14,0x08,0x14,0x63,0x00,0x00, //"X"=58H
0x00,0x07,0x08,0x70,0x08,0x07,0x00,0x00, //"Y"=59H
0x00,0x61,0x51,0x49,0x45,0x43,0x00,0x00, //"Z"=5AH
0x00,0x00,0x7f,0x41,0x41,0x00,0x00,0x00, //"["=5BH
0x00,0x02,0x04,0x08,0x10,0x20,0x00,0x00, //"\"=5CH
0x00,0x00,0x41,0x41,0x7f,0x00,0x00,0x00, //"]"=5DH
0x00,0x04,0x02,0x01,0x02,0x04,0x00,0x00, //"^"=5EH
0x00,0x40,0x40,0x40,0x40,0x40,0x00,0x00, //"_"=5FH
0x00,0x01,0x02,0x04,0x00,0x00,0x00,0x00, //"`"=60H
0x00,0x20,0x54,0x54,0x54,0x78,0x00,0x00, //"a"=61H
0x00,0x7f,0x48,0x44,0x44,0x38,0x00,0x00, //"b"=62H
0x00,0x38,0x44,0x44,0x44,0x28,0x00,0x00, //"c"=63H
0x00,0x38,0x44,0x44,0x48,0x7f,0x00,0x00, //"d"=64H
0x00,0x38,0x54,0x54,0x54,0x18,0x00,0x00, //"e"=65H
0x00,0x00,0x08,0x7e,0x09,0x02,0x00,0x00, //"f"=66H
0x00,0x0c,0x52,0x52,0x4c,0x3e,0x00,0x00, //"g"=67H
0x00,0x7f,0x08,0x04,0x04,0x78,0x00,0x00, //"h"=68H
0x00,0x00,0x44,0x7d,0x40,0x00,0x00,0x00, //"i"=69H
0x00,0x20,0x40,0x44,0x3d,0x00,0x00,0x00, //"j"=6AH
0x00,0x00,0x7f,0x10,0x28,0x44,0x00,0x00, //"k"=6BH
0x00,0x00,0x41,0x7f,0x40,0x00,0x00,0x00, //"l"=6CH
0x00,0x7c,0x04,0x78,0x04,0x78,0x00,0x00, //"m"=6DH
0x00,0x7c,0x08,0x04,0x04,0x78,0x00,0x00, //"n"=6EH
0x00,0x38,0x44,0x44,0x44,0x38,0x00,0x00, //"o"=6FH
0x00,0x7e,0x0c,0x12,0x12,0x0c,0x00,0x00, //"p"=70H
0x00,0x0c,0x12,0x12,0x0c,0x7e,0x00,0x00, //"q"=71H
0x00,0x7c,0x08,0x04,0x04,0x08,0x00,0x00, //"r"=72H
0x00,0x58,0x54,0x54,0x54,0x64,0x00,0x00, //"s"=73H
0x00,0x04,0x3f,0x44,0x40,0x20,0x00,0x00, //"t"=74H
0x00,0x3c,0x40,0x40,0x3c,0x40,0x00,0x00, //"u"=75H
0x00,0x1c,0x20,0x40,0x20,0x1c,0x00,0x00, //"v"=76H
0x00,0x3c,0x40,0x30,0x40,0x3c,0x00,0x00, //"w"=77H
0x00,0x44,0x28,0x10,0x28,0x44,0x00,0x00, //"x"=78H
0x00,0x1c,0xa0,0xa0,0x90,0x7c,0x00,0x00, //"y"=79H
0x00,0x44,0x64,0x54,0x4c,0x44,0x00,0x00, //"z"=7AH
0x00,0x00,0x08,0x36,0x41,0x00,0x00,0x00, //"{"=7BH
0x00,0x00,0x00,0x77,0x00,0x00,0x00,0x00, //"|"=7CH
0x00,0x00,0x41,0x36,0x08,0x00,0x00,0x00, //"}"=7DH
0x00,0x02,0x01,0x02,0x04,0x02,0x00,0x00, //"~"=7EH
0x00,0xff,0xff,0xff,0xff,0xff,0x00,0x00 //" "=7FH
};
//*******************************************************************
//
//*******************************************************************
UINT8 code ASC_16[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //" "=20H
0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x27,0x00,0x00,0x00,0x00, //"!"=21H
0x00,0x08,0x04,0x02,0x08,0x04,0x02,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"""=22H
0x40,0x40,0xF8,0x40,0x40,0xF8,0x40,0x00,
0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00, //"#"=23H
0x00,0x70,0x88,0xFC,0x08,0x08,0x30,0x00,
0x00,0x1C,0x20,0xFF,0x21,0x22,0x1C,0x00, //"$"=24H
0xF0,0x08,0xF0,0x80,0x70,0x08,0x00,0x00,
0x00,0x31,0x0E,0x01,0x1E,0x21,0x1E,0x00, //"%"=25H
0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,
0x1E,0x21,0x23,0x24,0x18,0x16,0x20,0x00, //"&"=26H
0x20,0x18,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"'"=27H
0x00,0x00,0x00,0x00,0xC0,0x30,0x08,0x04,
0x00,0x00,0x00,0x00,0x03,0x0C,0x10,0x20, //"("=28H
0x04,0x08,0x30,0xC0,0x00,0x00,0x00,0x00,
0x20,0x10,0x0C,0x03,0x00,0x00,0x00,0x00, //")"=29H
0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,
0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00, //"*"=2AH
0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,
0x01,0x01,0x01,0x0F,0x01,0x01,0x01,0x00, //"+"=2BH
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x80,0x60,0x00,0x00,0x00,0x00,0x00,0x00, //","=2CH
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00, //"-"=2DH
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00, //"."=2EH
0x00,0x00,0x00,0x00,0x00,0xE0,0x18,0x04,
0x00,0x40,0x30,0x0C,0x03,0x00,0x00,0x00, //"/"=2FH
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,
0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00, //"0"=30H
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,
0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"1"=31H
0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,
0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00, //"2"=32H
0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,
0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00, //"3"=33H
0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,
0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00, //"4"=34H
0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,
0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00, //"5"=35H
0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,
0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00, //"6"=36H
0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,
0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00, //"7"=37H
0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,
0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00, //"8"=38H
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,
0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00, //"9"=39H
0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,
0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00, //":"=3AH
0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
0x00,0x00,0x80,0x60,0x00,0x00,0x00,0x00, //";"=3BH
0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,
0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00, //"<"=3CH
0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,
0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00, //"="=3DH
0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,
0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00, //">"=3EH
0x00,0x30,0x08,0x08,0x08,0x88,0x70,0x00,
0x00,0x00,0x00,0x26,0x01,0x00,0x00,0x00, //"?"=3FH
0xC0,0x30,0xC8,0x28,0xE8,0x10,0xE0,0x00,
0x07,0x18,0x27,0x28,0x27,0x28,0x07,0x00, //"@"=40H
0x00,0x00,0xE0,0x18,0x18,0xE0,0x00,0x00,
0x30,0x0F,0x04,0x04,0x04,0x04,0x0F,0x30, //"A"=41H
0xF8,0x08,0x08,0x08,0x08,0x90,0x60,0x00,
0x3F,0x21,0x21,0x21,0x21,0x12,0x0C,0x00, //"B"=42H
0xE0,0x10,0x08,0x08,0x08,0x10,0x60,0x00,
0x0F,0x10,0x20,0x20,0x20,0x10,0x0C,0x00, //"C"=43H
0xF8,0x08,0x08,0x08,0x08,0x10,0xE0,0x00,
0x3F,0x20,0x20,0x20,0x20,0x10,0x0F,0x00, //"D"=44H
0x00,0xF8,0x08,0x08,0x08,0x08,0x08,0x00,
0x00,0x3F,0x21,0x21,0x21,0x21,0x20,0x00, //"E"=45H
0xF8,0x08,0x08,0x08,0x08,0x08,0x08,0x00,
0x3F,0x01,0x01,0x01,0x01,0x01,0x00,0x00, //"F"=46H
0xE0,0x10,0x08,0x08,0x08,0x10,0x60,0x00,
0x0F,0x10,0x20,0x20,0x21,0x11,0x3F,0x00, //"G"=47H
0x00,0xF8,0x00,0x00,0x00,0x00,0xF8,0x00,
0x00,0x3F,0x01,0x01,0x01,0x01,0x3F,0x00, //"H"=48H
0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00, //"I"=49H
0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x00,
0x00,0x1C,0x20,0x20,0x20,0x20,0x1F,0x00, //"J"=4AH
0x00,0xF8,0x00,0x80,0x40,0x20,0x10,0x08,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -