for(i=0;i<128;i++) {
if(temp[i] == 0x80) temp_bit=0x01; else temp_bit=0x00;
LCD[0][i] = (LCD[0][i]<<1) | temp_bit; } }
//把液晶y1~y2内的元素循环下移一格(在LCD矩阵中) //
void update_fraps_some(u8 y1,u8 y2) {
u8 temp[128]; u8 temp_bit; uchar i,j; y1=y1-1; //y2-=y2;
for(i=y1;i temp[i] = LCD[7][i] & 0x80; //最后一行像素需要保存下 if((LCD[6][i]&0x80) == 0x80) temp_bit=0x01; else temp_bit=0x00; LCD[7][i] = (LCD[7][i]<<1) | temp_bit; } for(j=6;j>0;j--) { for(i=y1;i if((LCD[j-1][i]&0x80) == 0x80) temp_bit=0x01; else temp_bit=0x00; LCD[j][i] = (LCD[j][i]<<1) | temp_bit; } } for(i=y1;i if(temp[i] == 0x80) temp_bit=0x01; else temp_bit=0x00; LCD[0][i] = (LCD[0][i]<<1) | temp_bit; } } //把分数显示到LCD矩阵上 void update_score(unsigned int score) { unsigned int a,b,c; //百位,十位,各位 c=score; score=score/10; b=score; score=score/10; a=score; update_to_LCD(1,111,num[a],1,6); update_to_LCD(1,117,num[b],1,6); update_to_LCD(1,123,num[c],1,6); } //把速度条显示到LCD矩阵上 void update_speed(u8 speed) { if(speed == 0) { update_to_LCD(33,112,white_speed,1,16); update_to_LCD(41,112,white_speed,1,16); update_to_LCD(49,112,white_speed,1,16); update_to_LCD(57,112,white_speed,1,16); } else if(speed == 1) { update_to_LCD(33,112,white_speed,1,16); update_to_LCD(41,112,white_speed,1,16); update_to_LCD(49,112,white_speed,1,16); update_to_LCD(57,112,black_speed,1,16); } else if(speed == 2) { update_to_LCD(33,112,white_speed,1,16); update_to_LCD(41,112,white_speed,1,16); update_to_LCD(49,112,black_speed,1,16); update_to_LCD(57,112,black_speed,1,16); } else if(speed == 3) { update_to_LCD(33,112,white_speed,1,16); update_to_LCD(41,112,black_speed,1,16); update_to_LCD(49,112,black_speed,1,16); update_to_LCD(57,112,black_speed,1,16); } else if(speed == 4) { update_to_LCD(33,112,black_speed,1,16); update_to_LCD(41,112,black_speed,1,16); update_to_LCD(49,112,black_speed,1,16); update_to_LCD(57,112,black_speed,1,16); } } //将街道等物件显示完全 void show_others(void) { update_to_LCD(1,1,street,1,16);//确定左边街道的显示 update_to_LCD(9,1,street,1,16); update_to_LCD(17,1,street,1,16); update_to_LCD(25,1,street,1,16); update_to_LCD(33,1,street,1,16); update_to_LCD(41,1,street,1,16);