void DisplayFirstA(void)
{
if(UsbInOff)
{
switch(MESCA_ge)
{
case 0: WriteByteHT1621(0,15,4);
break;
case 1: WriteByteHT1621(0,6,4);
break;
case 2: WriteByteHT1621(0,13,4);
break;
case 3: WriteByteHT1621(0,15,4);
break;
case 4: WriteByteHT1621(0,6,4);
break;
case 5: WriteByteHT1621(0,11,4);
break;
case 6: WriteByteHT1621(0,11,4);
break;
case 7: WriteByteHT1621(0,14,4);
break;
case 8: WriteByteHT1621(0,15,4);
break;
case 9: WriteByteHT1621(0,15,4);
break;
default :break;
}
}
if(UsbInOn)
{
switch(Usb
timeMin_ge)
{
case 0: WriteByteHT1621(0,15,4);
break;
case 1: WriteByteHT1621(0,6,4);
break;
case 2: WriteByteHT1621(0,13,4);
break;
case 3: WriteByteHT1621(0,15,4);
break;
case 4: WriteByteHT1621(0,6,4);
break;
case 5: WriteByteHT1621(0,11,4);
break;
case 6: WriteByteHT1621(0,11,4);
break;
case 7: WriteByteHT1621(0,14,4);
break;
case 8: WriteByteHT1621(0,15,4);
break;
case 9: WriteByteHT1621(0,15,4);
break;
default :break;
}
}
}
void DisplayFirstB(void)
{
if(UsbInOff)
{
switch(MESCA_ge)
{
case 0: SendDataHT1621(10,4);
break;
case 1: SendDataHT1621(0,4);
break;
case 2: SendDataHT1621(6,4);
break;
case 3: SendDataHT1621(4,4);
break;
case 4: SendDataHT1621(12,4);
break;
case 5: SendDataHT1621(12,4);
break;
case 6: SendDataHT1621(14,4);
break;
case 7: SendDataHT1621(0,4);
break;
case 8: SendDataHT1621(14,4);
break;
case 9: SendDataHT1621(12,4);
break;
default :break;
}
}
if(UsbInOn)
{
switch(UsbTimeMin_ge)
{
case 0: SendDataHT1621(10,4);
break;
case 1: SendDataHT1621(0,4);
break;
case 2: SendDataHT1621(6,4);
break;
case 3: SendDataHT1621(4,4);
break;
case 4: SendDataHT1621(12,4);
break;
case 5: SendDataHT1621(12,4);
break;
case 6: SendDataHT1621(14,4);
break;
case 7: SendDataHT1621(0,4);
break;
case 8: SendDataHT1621(14,4);
break;
case 9: SendDataHT1621(12,4);
break;
default :break;
}
}
}
if(QHValue==1)
{
switch(GLValue)
{
case 0: LCDDispValue=4;
break;
case 1: LCDDispValue=5;
break;
case 2: LCDDispValue=6;
break;
case 3: LCDDispValue=7;
break;
default :break;
}
}
if(QHValue==2)
{
switch(GLValue)
{
case 0: LCDDispValue=8;
break;
case 1: LCDDispValue=9;
break;
case 2: LCDDispValue=10;
break;
case 3: LCDDispValue=11;
break;
default :break;
}
void LCDDisplayEight(void)
{
// DisplayFirstA();
WriteByteHT1621(0,15,4);
LcdCSOff;
SendByteHT1621(0xa0,3);//送写命令模式
SendByteHT1621(4,6);//1<<2
// DisplayFirstB();
SendDataHT1621(10,4);
SendDataHT1621(DisplayCode[0]+0x10,8);
SendDataHT1621(DisplayCode[0],8);
BattDisplay();
if(PauseValue) SendDataHT1621(1,4);
else SendDataHT1621(0,4);
SendDataHT1621(3,4);
SendDataHT1621(0,4);
SendDataHT1621(0,4);
SendDataHT1621(1,4);
LcdCSOn;
}
-
-
价格有优势,质量也很稳定。有拿过资料跟驱动程序,你可以参照看看
VK1621B-LCD液晶显示驱动IC.pdf 下载积分: 积分 -1 分
1.41 MB, 下载次数: 9, 下载积分: 积分 -1 分
HT1621B替代HT1622取代HT1623兼容HT1625代替HT1626 中文资料 .pdf 下载积分: 积分 -1 分
319.13 KB, 下载次数: 6, 下载积分: 积分 -1 分
一周热门 更多>