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

正文內(nèi)容

點(diǎn)陣式液晶顯示屏的顯示程序設(shè)計(jì)單片機(jī)課程設(shè)計(jì)報(bào)告-資料下載頁

2025-08-03 05:54本頁面
  

【正文】 在屏幕第0行并上滾 }}void DispBmpDown(char *buf) //顯示一幅位圖并下滾{ int i。 DispBmp(buf)。 for (i = 63。 i = 0。 i) { Delay1ms(25)。 LCD_WriteCommand1(0xc0 + i % 64)。//設(shè)置起始行實(shí)現(xiàn)下滾 LCD_WriteCommand2(0xc0 + i % 64)。 }}void DispBmpLeft(char *buf) //顯示一幅位圖幷左滾{ int i,j,k。 for(k = 0。 k 128。 k++) { Delay1ms(25)。 for (j = 0。 j 8。 j++) { LCD_WriteCommand1(0xB8 + j)。//頁地址 LCD_WriteCommand1(0x40)。 //列地址 for (i = 0。 i 64。 i++) //64B/頁的數(shù)據(jù)寫入DD RAM { LCD_WriteData1(buf[(j * 2) * 64 + (i + k)%128])。 } LCD_WriteCommand2(0xB8 + j)。 LCD_WriteCommand2(0x40)。 for (i = 0。 i 64。 i++) { LCD_WriteData2(buf[(j * 2) * 64 + (i + k + 64)%128])。}}}}void DispBmpRight(char *buf) //顯示一幅位圖并右滾{ int i,j,k。 for(k = 128。 k 0。 k) { Delay1ms(20)。 for (j = 0。 j 8。 j++) { LCD_WriteCommand1(0xB8+j)。 LCD_WriteCommand1(0x40)。 for (i = 0。 i 64。 i++) { LCD_WriteData1(buf[(j * 2) * 64 + (i + k)%128])。 } LCD_WriteCommand2(0xB8 + j)。 LCD_WriteCommand2(0x40)。 for (i = 0。 i 64。 i++) { LCD_WriteData2(buf[(j * 2) * 64 + (i + k + 64)%128])。}}}} void DispLCD(char *DispBuf,char num) { int i。 for(i=0。i5。i++) { if((num==1)amp。amp。(i==2)) { LCD_WriteSZ(56+8*i,4,dot)。 Delay1ms(100)。 i++。 } if((num==2)amp。amp。(i==1)) { LCD_WriteSZ(56+8*i,4,dot)。 Delay1ms(100)。 i++。 } if((num==3)amp。amp。(i==3)) { LCD_WriteSZ(56+8*i,4,dot)。 Delay1ms(100)。 i++。 } switch(DispBuf[i]) { case 0: LCD_WriteSZ(56+8*i,4,zero)。 Delay1ms(100)。break。 case 1: LCD_WriteSZ(56+8*i,4,one)。 Delay1ms(100)。break。 case 2: LCD_WriteSZ(56+8*i,4,two)。 Delay1ms(100)。break。 case 3: LCD_WriteSZ(56+8*i,4,three)。 Delay1ms(100)。break。 case 4: LCD_WriteSZ(56+8*i,4,four)。 Delay1ms(100)。break。 case 5: LCD_WriteSZ(56+8*i,4,five)。 Delay1ms(100)。break。 case 6: LCD_WriteSZ(56+8*i,4,six)。 Delay1ms(100)。break。 case 7: LCD_WriteSZ(56+8*i,4,seven)。 Delay1ms(100)。break。 case 8: LCD_WriteSZ(56+8*i,4,eight)。 Delay1ms(100)。break。 case 9: LCD_WriteSZ(56+8*i,4,nine)。 Delay1ms(100)。break。 default: break。} } } void Delay1s(unsigned char T)。 void TestLCD(void) //顯示{ char i。 InitLCD()。 DispBmp(screen1)。 Delay1s(1)。DispBmpUp(screen1)。DispBmpDown(screen1)。DispBmpLeft(screen1)。DispBmpRight(screen1)。Delay1s(1)。 DispBmp(screen2)。 Delay1s(3)。} void ShowWenDu(void) { InitLCD()。 LCD_WriteHZ(16,4,wen)。 Delay1ms(100)。 LCD_WriteHZ(32,4,du)。 Delay1ms(100)。 LCD_WriteSZ(48,4,mao)。 Delay1ms(100)。 } void ShowDianYa(void) { InitLCD()。 LCD_WriteHZ(16,4,dian)。 Delay1ms(100)。 LCD_WriteHZ(32,4,ya)。 Delay1ms(100)。 LCD_WriteSZ(48,4,mao)。 Delay1ms(100)。 } void ShowYaLi(void) { InitLCD()。 LCD_WriteHZ(16,4,ya)。 Delay1ms(100)。 LCD_WriteHZ(32,4,li)。 Delay1ms(100)。 LCD_WriteSZ(48,4,mao)。 Delay1ms(100)。 } void showniu(void) { LCD_WriteSZ(96,4,N)。 Delay1ms(100)。 } void showfu(void) { LCD_WriteSZ(96,4,m)。 Delay1ms(100)。 LCD_WriteSZ(104,4,V)。 Delay1ms(100)。 } void showdu(void) { LCD_WriteSZ(96,4,C)。 Delay1ms(100)。 } 按鍵調(diào)試模塊include include sbit HD7279_DAT=P1^7。 sbit HD7279_CLK=P1^6。 define NOSELECT7279 P5 |= 0x80 //SPICS4(P57)=1 define SELECT7279 P5 amp。= ~(0x80) //SPICS4(P57)=0。 define Set7279DAT HD7279_DAT=1 define Clr7279DAT HD7279_DAT=0 define Set7279CLK HD7279_CLK=1 define Clr7279CLK HD7279_CLK=0 HD7279測試顯示程序void Delay1ms(unsigned char T)。 // I/O初始化void Delay1s(unsigned char T)。 void Delay1us(unsigned char T)。 void Send7279Byte(unsigned char ch) { char i。 SELECT7279。 //置CS低電平 Delay1us(50)。 //延時(shí)50us for (i=0。i8。i++) { if (champ。0x80) //輸出七位到HD7279的DATA端 { Set7279DAT。 } else { Clr7279DAT。 } Set7279CLK。 ch=ch1。 Delay1us(8)。 Clr7279CLK。 Delay1us(8)。 } Clr7279DAT。 } unsigned char Receive7279Byte(void) { unsigned char i,ch。 ch=0。 Set7279DAT。 Delay1us(50)。 for (i=0。i8。i++) { Set7279CLK。 Delay1us(8)。 ch=ch1。 if (HD7279_DAT) ch+=1。 Clr7279CLK。 Delay1us(8)。 } Clr7279DAT。 return ch。 } void FlashLED(unsigned char No) { char i。 Send7279Byte(0x88)。 i=0x1。 while (No) { i=i1。 No。 } Send7279Byte(~i)。 NOSELECT7279。 } void BlankLED(unsigned char ch) { Send7279Byte(0x98)。 Send7279Byte(ch)。 NOSELECT7279。 } void MoveLeft(void) { Send7279Byte(0xA1)。 NOSELECT7279。 } void MoveRight(void) { Send7279Byte(0xA0)。 NOSELECT7279。 } unsigned char code BdSeg[]={ 0x7e,0x30,0x6d,0x79, // 0 1 2 3 0x33,0x5b,0x5f,0x70, // 4 5 6 7 0x7f,0x7b,0x77,0x1f, // 8 9 a b 0x4e,0x3d,0x4f,0x47, // c d e f 0x00,0x01 }。 /* 。 b6 。 。 b1| b0 |b5 。 small 。 b2| b3 |b4 。 .b7 */ void DispLED(char *DispBuf,char ShowDot)//ShowDot 207。212。202。190。208。161。202。253。181。227。206。187。 { char i,ch。 ShowDot。 for (i=0。i6。i++) { ch=DispBuf[i]。 if ((ch=39。a39。) amp。amp。 (ch=39。f39。)) { ch=39。a39。ch+=0xa。 } if ((ch=39。A39。) amp。amp。 (ch=39。F39。)) { ch=39。A39。ch+=0xa。 } Send7279Byt
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1