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

正文內(nèi)容

word版可編輯-嵌入式課程設計電子詞典硬件設計精心整理doc(編輯修改稿)

2024-08-11 12:09 本頁面
 

【文章內(nèi)容簡介】 ucTempBitmap[][76800]。/* function code *//********************************************************************************************** name: Lcd_Init()* func: Initialize LCD Controller* para: none* ret: none* modify:* ment: *********************************************************************************************/void Lcd_Init (void){ rDITHMODE=0x12210。 rDP1_2 =0xa5a5。 rDP4_7 =0xba5da65。 rDP3_5 =0xa5a5f。 rDP2_3 =0xd6b。 rDP5_7 =0xeb7b5ed。 rDP3_4 =0x7dbe。 rDP4_5 =0x7ebdf。 rDP6_7 =0x7fdfbfe。 // disable,8B_SNGL_SCAN,WDLY=16clk,WLH=16clk, rLCDCON1=(0x0)|(25)|(MVAL_USED7)|(0x38)|(0x310)|(CLKVAL_COLOR12)。 // LINEBLANK=10 (without any calculation) rLCDCON2=(LINEVAL)|(HOZVAL_COLOR10)|(1021)。 rLCDCON3=0。 // 256color, LCDBANK, LCDBASEU rLCDSADDR1= (0x327) | ( ((unsigned int)aLcdActiveBuffer22)21 ) | M5D((unsigned int)aLcdActiveBuffer1)。 rLCDSADDR2= M5D((((unsigned int)aLcdActiveBuffer+(SCR_XSIZE*LCD_YSIZE))1)) | (MVAL21)。 rLCDSADDR3= (LCD_XSIZE/2) | ( ((SCR_XSIZELCD_XSIZE)/2)9 )。 //The following value has to be changed for better display. rREDLUT =0xfdb96420。 // 1111 1101 1011 1001 0110 0100 0010 0000 rGREENLUT=0xfdb96420。 // 1111 1101 1011 1001 0110 0100 0010 0000 rBLUELUT =0xfb40。 // 1111 1011 0100 0000 rLCDCON1=(0x1)|(25)|(MVAL_USED7)|(0x38)|(0x310)|(CLKVAL_COLOR12)。// rPDATE=rPDATEamp。0x0e。 rPDATE=0xfe。 Lcd_Clr()。}/********************************************************************************************** name: Lcd_Clr()* func: clear LCD screen* para: none * ret: none* modify:* ment: *********************************************************************************************/void Lcd_Clr(void){ INT32U i。 INT32U *pDisp = (INT32U*)aLcdActiveBuffer。 for (i = 0。 i (SCR_XSIZE * SCR_YSIZE / 4)。 i++) { *pDisp++ = ALLWHITE。 }}/********************************************************************************************** name: LcdClrRect()* func: fill appointed area with appointed color* para: usLeft,usTop,usRight,usBottom area39。s rectangle acme coordinate* ucColor appointed color value* ret: none* modify:* ment: also as clear screen function *********************************************************************************************/void LcdClrRect(INT16 usLeft, INT16 usTop, INT16 usRight, INT16 usBottom, INT8U ucColor){ INT32U i, j。 INT8U *pDisp = (INT8U*)aLcdActiveBuffer。 for(i=usTop。i=usBottom。i++) { for(j=usLeft。j=usRight。j++) { LCD_PutPixel(j, i, ucColor)。 } } }ifdef MON_LCD/********************************************************************************************** name: LcdClrRect()* func: fill appointed area with appointed color* para: usLeft,usTop,usRight,usBottom area39。s rectangle acme coordinate* ucColor appointed color value* ret: none* modify:* ment: also as clear screen function *********************************************************************************************/void LcdClrRect(INT16 usLeft, INT16 usTop, INT16 usRight, INT16 usBottom, INT8U ucColor){ INT16 i=0。 INT16 k,l。 INT16 m。 INT32U ulColor = (ucColor 28) | (ucColor 24) | (ucColor 20) | (ucColor 16) | (ucColor 12) | (ucColor 8) | (ucColor 4) | ucColor。 if((usRightusLeft)=8) { for(i=usTop。i=usBottom。i++) { for(m=usLeft。m=usRight。m++) { LCD_PutPixel(m, i, ucColor)。 } } return。 } if((usLeft%8)==0) k=usLeft。 else { k=(usLeft/8)*8+8。 } if(( usRight%8)==0) l= usRight。 else { l=( usRight/8)*8。 } for(i=usTop。i=usBottom。i++) { for(m=usLeft。m=(k1)。m++) { LCD_PutPixel(m, i, ucColor)。 } for(m=k。ml。m+=8) { (*(INT32U*)(aLcdActiveBuffer + i * SCR_XSIZE / 2 + m / 2)) = ulColor。 } for(m=l。m=usRight。m++) { LCD_PutPixel(m, i, ucColor)。 } }}endif/********************************************************************************************** name: Lcd_Draw_Box()* func: Draw rectangle with appointed color* para: usLeft,usTop,usRight,usBottom rectangle39。s acme coordinate* ucColor appointed color value* ret: none* modify:* ment: *********************************************************************************************/void Lcd_Draw_Box(INT16 usLeft, INT16 usTop, INT16 usRight, INT16 usBottom, INT8U ucColor){ Lcd_Draw_HLine(usLeft, usRight, usTop, ucColor, 1)。 Lcd_Draw_HLine(usLeft, usRight, usBottom, ucColor, 1)。 Lcd_Draw_VLine(usTop, usBottom, usLeft, ucColor, 1)。 Lcd_Draw_VLine(usTop, usBottom, usRight, ucColor, 1)。}/********************************************************************************************** name: Lcd_Draw_Line()* func: Draw line with appointed color* para: usX0,usY0 line39。s start point coordinate* usX1,usY1 line39。s end point coordinate* ucColor appointed color value* usWidth line39。s width* ret: none* modify:* ment: *********************************************************************************************/void Lcd_Draw_Line(INT16 usX0, INT16 usY0, INT16 usX1, INT16 usY1, INT8U ucColor, INT16U usWidth){ INT16 usDx。 INT16 usDy。 INT16 y_sign。 INT16 x_sign。 INT16 decision。 INT16 wCurx, wCury, wNextx, wNexty, wpy, wpx。 if( usY0 == usY1 ) { Lcd_Draw_HLine (usX0, usX1, usY0, ucColor, usWidth)。 return。 } if( usX0 == usX1 ) { Lcd_Draw_VLine (usY0, usY1, usX0, ucColor, usWidth)。 return。 } usDx = abs(usX0 usX1)。 usDy = abs(usY0 usY1)。 if( ((usDx = usDy amp。amp。 (usX0 usX1)) || ((usDy usDx) amp。amp。 (usY0 usY1))) )
點擊復制文檔內(nèi)容
職業(yè)教育相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1