毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 课程设计 >> 正文

单片机课程设计出租车计价器设计+源代码 第4页

更新时间:2012-9-25:  来源:毕业论文
                 }
              else        //毕业论文http://www.751com.cn/  字符下半部
                 { if ((x+k-ASC_CHR_WIDTH)<64)
                      { Select_Screen(1);  //选择左半屏
                        Set_Column(x+k-8);
                      }
                   else
                      { Select_Screen(2);  //选择右半屏
                        Set_Column((x+k-8)-64);
                      }
                   Set_Line(y+1);
                         }

              Write_Dat(cData);
                    }

                    if(c1 != 8) // 非退格
                    x+=ASC_CHR_WIDTH;
                }

        else    //汉字
                {
                    for(j=0;j<sizeof(GB_16)/sizeof(GB_16[0]);j++)                            //sizeof(GB_16[0]
                    {
                        if(fmt[i] == GB_16[j].Index_GB16[0] && fmt[i+1] == GB_16[j].Index_GB16[1])
                        break;
                    }
                    for(k=0;k<2*HZ_CHR_WIDTH;k++)
                    {
                      if(j < sizeof(GB_16)/sizeof(GB_16[0]))
                 {
                  if (mode == 1)                 
                     cData=GB_16[j].Msk_GB16[k];
                  else
                     cData=~GB_16[j].Msk_GB16[k];
                 }
              else        
                  cData=0;

              if (k<HZ_CHR_WIDTH)    //汉字上半部
                 { if ((x+k)<64)
                      { Select_Screen(1);  //选择左半屏
                        Set_Column(x+k);
                      }
                   else
                      { Select_Screen(2);  //选择右半屏
                        Set_Column(x+k-64);
                      }
                   Set_Line(y);
                 }
              else        //汉字下半部
                 { if ((x+k-HZ_CHR_WIDTH)<64)
                      { Select_Screen(1);  //选择左半屏
                        Set_Column(x+k-HZ_CHR_WIDTH);
                      }
                   else
                      { Select_Screen(2);  //毕业论文http://www.751com.cn/  选择右半屏
                        Set_Column((x+k-HZ_CHR_WIDTH)-64);
                      }
                   Set_Line(y+1);
                         }

              Write_Dat(cData);
                                               
                    }
                    x+=HZ_CHR_WIDTH;
                    i++;
                } 

                i++;
        }

上一页  [1] [2] [3] [4] 

单片机课程设计出租车计价器设计+源代码 第4页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。