用数组保存数据进行刷屏

2019-07-21 04:48发布

[mw_shl_code=c,true]这是我的刷屏代码,是不是数据没写到数组里面,应该怎么写,求指教,, [/mw_shl_code] [mw_shl_code=c,true] [/mw_shl_code] [mw_shl_code=c,true] [/mw_shl_code] [mw_shl_code=c,true]if(x_2==51)//???????????? { x_1=50; x_2=51; y_1=y_2=300-adc_out; RA8875_DrawLine(x_1,y_1,x_2,y_2,CL_BLACK); Delay_ads(); sprintf((char *)ad_lib[1],"%d",(int)y_2); y_1=y_2; x_1=x_2; x_2++; } else if(51<x_2 & x_2<730)//??·????????? { y_2=300-adc_out; RA8875_DrawLine(x_1,y_1,x_2,y_2,CL_BLACK); Delay_ads(); sprintf((char *)ad_lib[a],"%d",(int)y_2); RA8875_DispStr(560,60,(char*)ad_out[1], &tFont); y_1=y_2; x_1=x_2; x_2++; a++; } else if (x_2>=730)//????????,buffer size :680;address::1~680 { y_2=300-adc_out; sprintf((char *)ad_lib[680],"%d",(int)y_2); //RA8875_DispStr(560,60,(char*)ad_out[1], &tFont); x_1=50; x_2=51; y_1 = (int)ad_lib[1]; RA8875_ClrScr(CL_BLUE2);//???? i=1; for(i=1;i<681;i++) { y_2=ad_lib; RA8875_DrawLine(x_1,y_1,x_2,y_2,CL_BLACK); RA8875_Delay1us(); y_1=y_2; x_1++; x_2++; } Shift_L((int *)ad_lib[680],680, 1); Delay_ads(); x_2=730;[/mw_shl_code]
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。