#include "pbdata.h"
const u8 font[2][72]={
{0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x08,0x02,0x00,0x10,0x0C,0x00,0x10,0x38,0x00,0x20,0xE0,0x00,0x5F,0x80,0x00,0x99,0x00,0x03,0x00,0x80,0x06,0x00,0xC2,0x1C,0x00,0x72,0x70,0x00,0x04,0x28,0x00,0x08,0x04,0x00,0x30,0x03,0x03,0xE0,0x01,0xBF,0x00,0x00,0xD7,0x00,0x00,0x60,0xC0,0x00,0x60,0x30,0x00,0x30,0x18,0x00,0x30,0x0E,0x00,0x20,0x06,0x00,0x00,0x04,0x00,0x00,0x00},/*"众",0*/
{0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x04,0x00,0x02,0x08,0x0C,0x02,0x30,0x38,0x02,0xE0,0x00,0x7F,0xFE,0x00,0x3F,0xFE,0x00,0x02,0xC0,0xFC,0x06,0x60,0x04,0x02,0x20,0x04,0x00,0x01,0x04,0x1F,0xFE,0xC4,0x09,0x24,0xE4,0x09,0x24,0x04,0x09,0x24,0x04,0x09,0x24,0x04,0x09,0x24,0x3C,0x09,0x24,0x00,0x1F,0xFE,0x40,0x1F,0xFE,0x30,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00}};/*"想",1*/
const u8 str[15][36]={
{0x00,0x20,0x00,0x00,0x3C,0x00,0x00,0x3F,0xE0,0x00,0x23,0xF8,0x00,0x00,0xE0,0x00,0x27,0x00,0x00,0x3E,0x00,0x00,0x3F,0xE0,0x00,0x21,0xF8,0x00,0x01,0xE0,0x00,0x3E,0x00,0x00,0x20,0x00},/*"w",0*/
{0x00,0x20,0x00,0x00,0x3C,0x00,0x00,0x3F,0xE0,0x00,0x23,0xF8,0x00,0x00,0xE0,0x00,0x27,0x00,0x00,0x3E,0x00,0x00,0x3F,0xE0,0x00,0x21,0xF8,0x00,0x01,0xE0,0x00,0x3E,0x00,0x00,0x20,0x00},/*"w",1*/
{0x00,0x20,0x00,0x00,0x3C,0x00,0x00,0x3F,0xE0,0x00,0x23,0xF8,0x00,0x00,0xE0,0x00,0x27,0x00,0x00,0x3E,0x00,0x00,0x3F,0xE0,0x00,0x21,0xF8,0x00,0x01,0xE0,0x00,0x3E,0x00,0x00,0x20,0x00},/*"w",2*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*".",3*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x08,0x00,0x20,0x38,0x00,0x20,0xF8,0x00,0x23,0xE8,0x00,0x2F,0x88,0x00,0x3E,0x08,0x00,0x38,0x08,0x00,0x20,0x18,0x00,0x00,0x70,0x00,0x00,0x00},/*"z",4*/
{0x00,0x00,0x00,0x00,0x20,0x08,0x00,0x20,0x08,0x00,0x38,0x38,0x00,0x3E,0x68,0x00,0x27,0x80,0x00,0x03,0xC8,0x00,0x2C,0xF8,0x00,0x38,0x38,0x00,0x20,0x18,0x00,0x20,0x08,0x00,0x00,0x00},/*"x",5*/
{0x00,0x00,0x00,0x04,0x00,0x08,0x07,0xFF,0xF8,0x0F,0xFF,0xF8,0x00,0x01,0x88,0x00,0x03,0x00,0x00,0x2F,0xC0,0x00,0x38,0xF8,0x00,0x20,0x38,0x00,0x20,0x08,0x00,0x00,0x08,0x00,0x00,0x00},/*"k",6*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x03,0x00,0x20,0x01,0x00,0x20,0x01,0x00,0x20,0x03,0x06,0x3F,0xFE,0x06,0x3F,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"j",7*/
{0x00,0x20,0x08,0x00,0x3F,0xF8,0x00,0x3F,0xF8,0x00,0x10,0x08,0x00,0x20,0x00,0x00,0x3F,0xF8,0x00,0x3F,0xF8,0x00,0x10,0x08,0x00,0x20,0x00,0x00,0x3F,0xF8,0x00,0x3F,0xF8,0x00,0x00,0x08},/*"m",8*/
{0x00,0x00,0x00,0x00,0x07,0xC0,0x00,0x1F,0xF0,0x00,0x18,0x30,0x00,0x20,0x08,0x00,0x20,0x08,0x00,0x20,0x08,0x00,0x3C,0x08,0x00,0x1C,0x10,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00},/*"c",9*/
{0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x3F,0xF0,0x00,0x7F,0xF8,0x00,0x00,0x18,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x20,0x10,0x00,0x3F,0xF8,0x00,0x7F,0xF0,0x00,0x00,0x10,0x00,0x00,0x00},/*"u",10*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*".",11*/
{0x00,0x00,0x00,0x00,0x07,0xC0,0x00,0x1F,0xF0,0x00,0x18,0x30,0x00,0x20,0x08,0x00,0x20,0x08,0x00,0x20,0x08,0x00,0x3C,0x08,0x00,0x1C,0x10,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00},/*"c",12*/
{0x00,0x00,0x00,0x00,0x07,0xC0,0x00,0x0F,0xF0,0x00,0x18,0x30,0x00,0x30,0x08,0x00,0x20,0x08,0x00,0x20,0x08,0x00,0x30,0x08,0x00,0x18,0x30,0x00,0x0F,0xF0,0x00,0x07,0xC0,0x00,0x00,0x00},/*"o",13*/
{0x00,0x20,0x08,0x00,0x3F,0xF8,0x00,0x3F,0xF8,0x00,0x10,0x08,0x00,0x20,0x00,0x00,0x3F,0xF8,0x00,0x3F,0xF8,0x00,0x10,0x08,0x00,0x20,0x00,0x00,0x3F,0xF8,0x00,0x3F,0xF8,0x00,0x00,0x08}};/*"m",14*/
void show_font(u16 x,u16 y,u8 id,u16 qj,u16 bj)
{
u8 k=0,t=0,temp=0;
u16 y0=0;
y0=y;
for(k=0;k<72;k++)
{
temp=font[id][k];
for(t=0;t<8;t++)
{
if(temp&0x80)
{
LCD_DrawPoint(x,y,qj);
}
else
{
LCD_DrawPoint(x,y,bj);
}
temp<<=1;
y++;
if((y-y0)==24)
{
y=y0;
x++;
break;
}
}
}
}
void show_str(u16 x,u16 y,u8 id,u16 qj,u16 bj)
{
u8 k=0,t=0,temp=0;
u16 y0=0;
y0=y;
for(k=0;k<36;k++)
{
temp=str[id][k];
for(t=0;t<8;t++)
{
if(temp&0x80)
{
LCD_DrawPoint(x,y,qj);
}
else
{
LCD_DrawPoint(x,y,bj);
}
temp<<=1;
y++;
if((y-y0)==24)
{
y=y0;
x++;
break;
}
}
}
}
void LCD_Demo(void)
{
u8 i=0;
for(i=0;i<2;i++)
{
show_font(80+i*50,50,i,RED,LIGHTBLUE);
}
for(i=0;i<15;i++)
{
show_str(10+i*15,100,i,RED,LIGHTBLUE);
}
}