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

正文內(nèi)容

學士學位論文—基于單片機與sim300的手機模塊軟件設(shè)計(編輯修改稿)

2024-07-25 03:49 本頁面
 

【文章內(nèi)容簡介】 { temp=P3。 switch(temp) { case 0xee:num=0。 phone_num[k++]=0x30。 break。 case 0xde:num=1。 phone_num[k++]=0x31。 break。 case 0xbe:num=2。 phone_num[k++]=0x32。 break。 case 0x7e:num=3。 phone_num[k++]=0x33。 break。 } while(temp!=0xf0) { temp=P3。 temp=tempamp。0xf0。 } write_cmd(0x01)。 lcd_pos()。 while(phone_num[i]!=39。\039。) { write_dat(phone_num[i])。 i++。 } i=0。 } } P3=0xfd。 temp=P3。 temp=tempamp。0xf0。 while(temp!=0xf0) { delay(5)。 temp=P3。 temp=tempamp。0xf0。 while(temp!=0xf0) { temp=P3。 switch(temp) { case 0xed:num=4。 phone_num[k++]=0x34。 break。 case 0xdd:num=5。 phone_num[k++]=0x35。 break。 case 0xbd:num=6。 phone_num[k++]=0x36 break。 case 0x7d:num=7。 phone_num[k++]=0x37 break。 } while(temp!=0xf0) { temp=P3。 temp=tempamp。0xf0。 } write_cmd(0x01)。 lcd_pos()。 while(phone_num[i]!=39。\039。) { write_dat(phone_num[i])。 i++。 } i=0。 } } P3=0xfb。 temp=P3。 temp=tempamp。0xf0。 while(temp!=0xf0) { delay(5)。 temp=P3。 temp=tempamp。0xf0。 while(temp!=0xf0) { temp=P3。 switch(temp) { case 0xeb:num=8。 phone_num[k++]=0x38。 break。 case 0xdb:num=9。 phone_num[k++]=0x39。 break case 0xbb:num=10。 break。 case 0x7b:num=11。 break。 } while(temp!=0xf0) { temp=P3。 temp=tempamp。0xf0。 } if(num==10||num==11) { write_cmd(0x01)。 k=0。 // uint mm。 for(mm=0。mm12。mm++) { phone_num[mm]=0。 } } else { write_cmd(0x01)。 lcd_pos()。 while(phone_num[i]!=39。\039。) { write_dat(phone_num[i])。 i++。 } i=0。 } } } P3=0xf7。 temp=P3。 temp=tempamp。0xf0。 while(temp!=0xf0) { delay(5)。 temp=P3。 temp=tempamp。0xf0。 while(temp!=0xf0) { temp=P3。 switch(temp) { case 0xe7:num=12。 break。 case 0xd7:num=13。 break。 case 0xb7:num=14。 break。 case 0x77:num=15。 break。 } while(temp!=0xf0) { temp=P3。 temp=tempamp。0xf0。 } write_cmd(0x01)。 k=0。 // uint mm。 for(mm=0。mm12。mm++) { phone_num[mm]=0。 } } }}void main() //主函數(shù){ wela=0。 dula=0。 delay(10)。 lcd_init()。 lcd_pos()。 while(1) { keyscan()。 }}系統(tǒng)總程序include include include include include include include define uint unsigned intdefine uchar unsigned chardefine LCD_data P0define Phone_connection 1 define Clear_Connect 0 sbit LCD_RS = P3^5。sbit LCD_RW = P3^6。sbit LCD_EN = P3^4。sbit LCD_PSB = P3^7。sbit wela = P2^6。sbit dula = P2^7。sbit beep=P2^3。void delayms(uint x)。void key_4x4_scan()。 void ScanMessage(void)。void clr_rsbuf(void)。char Calls_State_Flag=Clear_Connect。 uchar code AT[]=AT\r\n 。 uchar code AT_CMGF[]= AT+CMGF=1\r\n。uchar code AT_CMGS[]= AT+CMGS=18946156746\r\n。 uchar code AT_CMGR[]= AT+CMGR=2\r\n。 uchar code AT_CSCA[]=AT+CSCA=\+8613800451500\\n。 uchar code AT_CNMI[]= AT+CNMI=\r\n。uchar code AT_CLIP[]= AT+CLIP=\r\n。 uchar Sms[]=hello!。uchar Phone_call[]=18946156746。uchar phone_num[12]。uchar RsPoint=0。uchar RsBuf[100]。uchar j==0。uint 。uchar phone_num[12]。uchar 。void write_cmd(uchar cmd){ LCD_RS = 0。 LCD_RW = 0。 LCD_EN = 0。 P0 = cmd。 delayms(5)。 LCD_EN = 1。 delayms(5)。 LCD_EN = 0。}void write_dat(uchar dat){ LCD_RS = 1。 LCD_RW = 0。 LCD_EN = 0。 P0 = dat。 delayms(5)。 LCD_EN = 1。 delayms(5)。 LCD_EN = 0。 }void lcd_pos(uchar Y){ uchar pos。 if(X==0) {X=0x80。} else if(X==1) {X=0x90。} else if(X==2) {X=0x88。} else if(X==3) {X=0x98。} pos=X+Y。 write_cmd(pos)。}void lcd_init(){ LCD_PSB = 1。 write_cmd(0x30)。 delayms(5)。 write_cmd(0x0C)。 delayms(5)。 write_cmd(0x01)。 delayms(5)。}void di(){ beep=0。 delayms(250)。 beep=1。}void delayms(uint x){ uint 。 for(i=x。i0。i) for(j=110。j0。j)。}void Print_Char(uchar ch){ SBUF=ch。 while(TI==0)。 TI=0。 }void Print_Str(uchar *str) { while(*str!=39。\039。) { Print_Char(*str++)。 }}void clr_rsbuf(void) { for(RsPoint=0。RsPoint100。RsPoint++) { RsBuf[RsPoint]=0x00。 } RsPoint=0。}void ser()interrupt 4{ if(RI==1) { di()。 delayms(50)。 RI=0。 RsBuf[RsPoint++]=SBUF。 if(RsPoint=sizeof(RsBuf)) { RsPoint=0。 } }}Ini_UART(void){ TMOD = 0x20。 TH1 = 0xFD。 TL1 = 0xFD。 SCON = 0x50。 PCON = 0x00。 TF1 = 1。 TR1 = 1。 ES=1。 ET0=1。 EA=1。}void ScanMessage(void){ for(ii=0。ii32。ii++) if(RsBuf[ii3]==39。C39。amp。amp。RsBuf[ii2]==39。M39。amp。amp。RsBuf[ii1]==39。T39。amp。amp。RsBuf[ii]==39。I39。) { di()。 delayms(50)。 di()。 delayms(50)。 di()。 delayms(50)。 lcd_pos()。 clr_rsbuf()。 Print_Str(AT_CMGR)。 delayms(250)。delayms(250)。delayms(250)。delayms(250)。 lcd_pos()。 for(i=0。i15。i++) { write_dat(RsBuf[i+20])。 delayms(100)。 } lcd_pos()。 for(i=15。i32。i++) { write_dat(RsBuf[i+20])。 delayms(100)。 } } else if(RsBuf[ii3]==39。C39。amp。amp。RsBuf[ii2]==39。L39。amp。amp。RsBuf[ii1]==39。I39。amp。amp。RsBuf[ii]==39。P39。) { beep=0。 delayms(250)。 delayms(250) lcd_pos()。 for(i=(ii+3)。i15+(ii+3)。i++) { write_dat(RsBuf[i])。 delayms(5)。 } lcd_pos()。 for(i=(ii+3)+15。i32+(ii+3)。i++) { write_dat(RsBuf[i])。 delayms(5)。 } while(!beep) { key_4x4_scan()。 } clr_rsbuf()。 }}void p
點擊復(fù)制文檔內(nèi)容
化學相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1