y1=2/8;
y2=2%8;
P1=y2;
// temp[x][y1]=posnow[x][y1];
LCD_Set_Pos(5,y1);
if(y2==0x00) {tmp=0x80;LCD_WrDat(0x80);P1=0x80;}
else if(y2==0x01) {tmp=0x01; LCD_WrDat(0x01);P1=0x01; }
else if(y2==0x02) {tmp=0x02; LCD_WrDat(0x02);P1=0X02; }
else if(y2==0x03) {tmp=0x04; LCD_WrDat(0x04);P1=0X04; }
else if(y2==0x04) {tmp=0x08; LCD_WrDat(0x08);P1=0X08; }
else if(y2==0x05) {tmp=0x10; LCD_WrDat(0x10);P1=0X10; }
else if(y2==0x06) {tmp=0x20; LCD_WrDat(0x20);P1=0x20; }
else if(y2==0x07) {tmp=0x40; LCD_WrDat(0x40);P1=0x40; }
为什么执行不了if判断语句??P1=y2是接小灯,亮的结果表明y2有赋值!!
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
这个函数能执行完么?
一周热门 更多>