void IIC_ShowChr(unsigned char x,unsigned char y,unsigned char Ch)
{
unsigned char i = 0;
unsigned char n = 0;
i = Ch - ' ';
if(x>max_Clou)
{
x = 0;
y+=2;
}
if(SIZE == 16)//如果字符大小为16
{
SetPos(x,y);
for(n=0;n<8;n++)
IIC_WR_Byte( F8X16[i*16+n],IIC_Data);
SetPos(x,y+1);
for(n=0;n<8;n++)
IIC_WR_Byte( F8X16[i*16+n+8],IIC_Data);
}
else
{
SetPos(x,y);
for(n=0;n<6;n++)
{
IIC_WR_Byte( OLED_F6x8[i][n],IIC_Data);
}
}
}
OLDE写字符
最新推荐文章于 2024-09-27 14:28:55 发布