freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于arm32位單片機(jī)的機(jī)器人設(shè)計(jì)畢業(yè)論文-資料下載頁

2025-06-18 21:58本頁面
  

【正文】 rLCDSADDR2= M5D((((U32)frameBuffer16+(SCR_XSIZE*LCD_YSIZE/2))1)) | (MVAL21)。rLCDSADDR2= M5D((((U32)frameBuffer16+(320*240/2))1)) | (1321)。 ( )[20:0 ]LCDBASEL=LCDBASEU + (PAGEWIDTH + OFFSIZE) x (LINEVAL +1) | 0000 0001 1010 0000 0000 0000 0000 0000 [28:21]MVAL rLCDSADDR3= (LCD_XSIZE/4) | ( ((SCR_XSIZELCD_XSIZE)/4)9 )。rLCDSADDR3= (80)。 | 0000 0000 0000 0000 0000 0000 0101 0000[8: 0]PAGEWIDTH | 0000 0000 0000 **** **** ***0 0000 0000[19:9]OFFSET 0000 0000 0000 **** **** ***0 0101 0000 */void Lcd_Init(void){ //320x240 1bit/1pixel LCD //if((U32)frameBuffer16==0) //{ //The total frame memory should be inside 4MB. //For example, if total memory is 8MB, the frame memory //should be in 0xc000000~0xc3fffff or c400000~c7fffff. //But, the following code doesn39。t meet this condition(4MB) //if the code size amp。 location is changed.. /*ARRAY_SIZE_G16=(SCR_XSIZE/2*SCR_YSIZE)=320/2*240 or ARRAY_SIZE_G16=(SCR_XSIZE/2*SCR_YSIZE)=640/2*480 LCD Panel 320*240 Vedio buffer=320*480 or 640*480 程序0入口地址:0x0c 00 00 00 */ frameBuffer16=(unsigned int (*)[SCR_XSIZE/8])malloc(ARRAY_SIZE_G16)。 //} rDITHMODE=0x12210。 //rDITHMODE=0x0。 rDP1_2 =0xa5a5。 rDP4_7 =0xba5da65。 rDP3_5 =0xa5a5f。 rDP2_3 =0xd6b。 rDP5_7 =0xeb7b5ed。 rDP3_4 =0x7dbe。 rDP4_5 =0x7ebdf。 rDP6_7 =0x7fdfbfe。 rLCDCON1=(0)|(15)|(MVAL_USED7)|(0x38)|(0x310)|(CLKVAL_G1612)。 // disable,4B_SNGL_SCAN,WDLY=8clk,WLH=8clk, rLCDCON2=(LINEVAL)|(HOZVAL10)|(1021)。 //LINEBLANK=10 (without any calculation) rLCDSADDR1= (0x227) | ( ((U32)frameBuffer1622)21 ) | M5D((U32)frameBuffer161)。 // 16gray, LCDBANK, LCDBASEU rLCDSADDR2= M5D((((U32)frameBuffer16+(SCR_XSIZE*LCD_YSIZE/2))1)) | (MVAL21)。 rLCDSADDR3= (LCD_XSIZE/4) | ( ((SCR_XSIZELCD_XSIZE)/4)9 )。 rLCDCON1=(1)|(15)|(MVAL_USED7)|(0x38)|(0x310)|(CLKVAL_G1612)。 // enable,4B_SNGL_SCAN,WDLY=8clk,WLH=8clk, }/*函數(shù)名 :WriteDisplayBuffer函數(shù)功能 :將圖庫直接寫入顯存調(diào)用函數(shù) :無日期 :2004年4月*/void WriteDisplayBuffer(U32 x,U32 y) //x=040(40*8),y=0240{ frameBuffer16[y][x]=buffer_picture[y][x]。}/*函數(shù)名 :PutPixel函數(shù)功能 :畫點(diǎn)。入口參數(shù) :x橫坐標(biāo),y縱坐標(biāo),c灰度值.調(diào)用函數(shù) :無日期 :2004年4月*/void PutPixel(U32 x,U32 y,U8 c) { //if(xSCR_XSIZE amp。amp。 ySCR_YSIZE) frameBuffer16[(y)][(x)/8]=( frameBuffer16[(y)][x/8] amp。 ~(0xf0000000((x)%8)*4) ) | ( (c)((81((x)%8))*4) )。}/*函數(shù)名 :Lcd_clr函數(shù)功能 :通過清顯存來實(shí)現(xiàn)對液晶的清屏入口參數(shù) :無調(diào)用函數(shù) :無日期 :2004年4月*/void Lcd_clr(void){U32 i,j。 for(j=0。j240。j++) for(i=0。i40。i++) frameBuffer16[j][i]=0x0。}/*函數(shù)名 :Disp_Hz功能 :顯示漢字,采用檢測字庫中的數(shù)據(jù)是否為1,1顯示,0不顯示 因此只能顯示兩色。入口參數(shù):x橫坐標(biāo),y縱坐標(biāo),c灰度值(015),n漢字在字庫中的位置調(diào)用函數(shù):PutPixel畫點(diǎn)函數(shù)*/void Disp_Hz(U32 x,U32 y,U8 c,U32 n){U16 a,b,i,j。 for(i=0。i16。i++) //16行 { b=buffer_hzk[n][i]。 for(j=0。j16。j++) //16個bit { a=(b)amp。(0x8000)。 b=b1。 if(a==0x8000) PutPixel(x+j,y+i,c)。 else PutPixel(x+j,y+i,0)。 } } }/*函數(shù)名 :Disp_Picture2功能 :顯示一幅圖片320*240,采用畫點(diǎn)的方式實(shí)現(xiàn),只能實(shí)現(xiàn)固定的 灰度顯示。入口參數(shù):num為要顯示的圖片在圖片庫中的位置調(diào)用函數(shù):PutPixel畫點(diǎn)函數(shù)日期 :2004年4月*/void Disp_Picture2(U8 num) {U8 a,b,i,j,n。for(j=0。j240。j++){ for(n=0。n40。n++) // { b=buffer_picture2[num][j][n]。 for(i=0。i8。i++) // { a=(b)amp。(0x80)。 b=b1。 //PutPixel(U32 x,U32 y,U8 c) if(a==0x80) PutPixel((8*n)+i,j,15)。 else PutPixel((8*n)+i,j,0)。 } } }}/*函數(shù)名 :Disp_Picture功能 :顯示一幅圖片320*240,采用直接寫顯存的方式實(shí)現(xiàn), 可以實(shí)現(xiàn)16級灰度。入口參數(shù):無調(diào)用函數(shù):WriteDisplayBuffer日期 :2004年4月*/void Disp_Picture(void){ U32 i,j。 for(j=0。j320。j++) for(i=0。i40。i++) WriteDisplayBuffer(i,j)。}/***************************************************/*函數(shù)名 :Disp_Picture3函數(shù)功能 :畫圖函數(shù),用畫點(diǎn)的方式來實(shí)現(xiàn)畫點(diǎn)調(diào)用函數(shù) :PutPixel。日期 :2004年5月21日*/void Disp_Picture3(void){ U8 i,j,n,c。 U32 a,b。 for(j=0。j240。j++){ for(n=0。n40。n++) // { b=buffer_picture[j][n]。 for(i=0。i8。i++) // { a=(b)amp。(0xF0000000)。 b=b4。 //PutPixel(U32 x,U32 y,U8 c) if(a==0x00000000) c=0x00。 if(a==0x10000000) c=0x01。 if(a==0x20000000) c=0x02。 if(a==0x30000000) c=0x03。 if(a==0x40000000) c=0x04。 if(a==0x50000000) c=0x05。 if(a==0x60000000) c=0x06。 if(a==0x70000000) c=0x07。 if(a==0x80000000) c=0x08。 if(a==0x90000000) c=0x09。 if(a==0xa0000000) c=0x0a。 if(a==0xb0000000) c=0x0b。 if(a==0
點(diǎn)擊復(fù)制文檔內(nèi)容
物理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1