完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
void DisplayFirstA(void)
{ if(U***InOff) { 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(U***InOn) { switch(U***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(U***InOff) { 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(U***InOn) { switch(U***TimeMin_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; }
|
|
相关推荐
7个回答
|
|
大神可以回复下液晶怎么驱动的吗
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
w
![]() ![]() ![]() |
|
|
|
w
![]() ![]() ![]() |
|
|
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
使用stm32l451片子,对ad7606进行3通道100k采样值跳动问题?
1145 浏览 1 评论
STM32进行DMA数据转运,为什么只有A组最后一位数据被转运到B组去?
1626 浏览 2 评论
1925 浏览 3 评论
1514 浏览 0 评论
嵌入式开发 Win11安装ST-Link 提示 设备描述符请求失败 怎么处理?
1654 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-27 21:22 , Processed in 0.739395 second(s), Total 87, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191