为什么CPdd这个数组里的值一直在反复横跳,就像乱码一样
u8 i;for(i=0,i<16,i++)
{
read_dgus_vp(0x7F04,(u8*)&CPdd[0],1);
if(AlarmData[1+i*14]==0)
{
CPdd[0]=CPdd[0]+1;
write_dgus_vp(0x7F04,(u8*)&CPdd[0],1);
}
write_dgus_vp(0x7F10,(u8*)&CPdd[0],1);//将CPdd写到2屏幕上方便观察
write_dgus_vp(0x58DB+(16-CPdd[0]),(u8*)&wace,1);
}