12864电子钟要反白2012的12怎么办?起始位置只能从2012的0开始吗?如图:
//字符反白显示
//输入参数:CX=要反白字符的行(0-3)
//CY=要反白字符的列(0-7)
//width=要反白字符的长度(1-16)
//如:c1vertChar(0, 2, 6);
void c1vertChar (uchar CX, CY, width)
{
displayPhoto(0,1);
lcdPosY = 0x80;
if (CX == 0)
{
CX = 0x80;
halfLineCnt = 16;
}
else if (CX == 1)
{
CX = 0x80;
halfLineCnt = 32;
}
else if (CX == 2)
{
CX = 0x88;
halfLineCnt = 16;
}
else if (CX == 3)
{
CX = 0x88;
halfLineCnt = 32;
}
lcdPosX = CX + CY;
for (; halfLineCnt != 0; halfLineCnt--)
{
basicBlock = width;
wrPositi1();
for (;basicBlock != 0; basicBlock--)
{
if (halfLineCnt > 16)
{
lcm_w_test(1,0x00);
}
else
{
lcm_w_test (1,0xff);
}
}
lcdPosY++;
}
lcm_w_test(0,0x36);//设置绘图功能
lcm_w_test(0,0x30);//功能设定(基本指令)
}
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>