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

正文內容

通信工程實習報告(已改無錯字)

2023-02-21 17:11:28 本頁面
  

【正文】 tmpL)。 Tb_SetSec(tmpH *10 + tmpL)。 break。 case 5: tmpH = GetSec()/10。 tmpL = GetSec()%10。 tmpL++。 if(tmpL 9) tmpL = 0。 SetSec(tmpH *10 + tmpL)。 Tb_SetSec(tmpH *10 + tmpL)。 break。 default:break。 }}void OnButton14(){}void OnButton21() //測溫模式{ if(CurrentMode == MF_SETTIME) Tb_StopBlink()。 CurrentMode = MF_TEMP。 Tb_SetTemperature(0)。}void OnButton22() //{ uint8_t pos = 0。 if(CurrentMode != MF_SETTIME) return。 pos = Tb_GetCursorPos()。 pos。 if(pos 5) pos = 5。 Tb_SetCursorPos(pos)。}void OnButton23() //{ uint8_t pos = 0,tmpH = 0,tmpL = 0。 if(CurrentMode != MF_SETTIME) return。 pos = Tb_GetCursorPos()。 switch(pos) { case 0: tmpH = GetHour()/10。 tmpL = GetHour()%10。 tmpH。 if(tmpH 2) tmpH = 2。 SetHour(tmpH *10 + tmpL)。 Tb_SetHour(tmpH *10 + tmpL)。 break。 case 1: tmpH = GetHour()/10。 tmpL = GetHour()%10。 tmpL。 if(tmpL 9) tmpL = 9。 SetHour(tmpH *10 + tmpL)。 Tb_SetHour(tmpH *10 + tmpL)。 break。 case 2: tmpH = GetMin()/10。 tmpL = GetMin()%10。 tmpH。 if(tmpH 9) tmpH = 9。 SetMin(tmpH *10 + tmpL)。 Tb_SetMin(tmpH *10 + tmpL)。 break。 case 3: tmpH = GetMin()/10。 tmpL = GetMin()%10。 tmpL。 if(tmpL 9) tmpL = 9。 SetMin(tmpH *10 + tmpL)。 Tb_SetMin(tmpH *10 + tmpL)。 break。 case 4: tmpH = GetSec()/10。 tmpL = GetSec()%10。 tmpH。 if(tmpH 9) tmpH = 9。 SetSec(tmpH *10 + tmpL)。 Tb_SetSec(tmpH *10 + tmpL)。 break。 case 5: tmpH = GetSec()/10。 tmpL = GetSec()%10。 tmpL。 if(tmpL 9) tmpL = 9。 SetSec(tmpH *10 + tmpL)。 Tb_SetSec(tmpH *10 + tmpL)。 break。 default:break。 }}void OnButton24() //{ uint8_t pos = 0。 if(CurrentMode != MF_SETTIME) return。 pos = Tb_GetCursorPos()。 pos++。 if(pos 5) pos = 0。 Tb_SetCursorPos(pos)。 //數碼管閃爍位的設置}void OnButton31() //時鐘模式{ if(CurrentMode == MF_SETTIME) Tb_StopBlink()。 CurrentMode = MF_CLOCK。 InitCounter()。 Tb_SetHour(GetHour())。 Tb_SetMin(GetMin())。 Tb_SetSec(GetSec())。}void OnButton32() { }void OnButton33() { }void OnButton34(){ }void OnButton41()//開始測頻或者測溫{ uint8_t i。 if(CurrentMode == MF_FREQ) { UpdateFrequency()。 Tb_SetNumber(GetFrequency())。 } if(CurrentMode == MF_TEMP) { Temperature = ConvertTemperature(ReadTemperature())。 TempToString(Temperature)。 UartInit()。 for(i=0。i3。i++) UartSendData(U_Temperature[i])。 InitCounter()。// i=100。// while(i)。 Tb_SetTemperature(Temperature)。 }}void OnButton42() //設置時鐘{ if(CurrentMode != MF_CLOCK amp。amp。 CurrentMode != MF_SETTIME) return。 if(CurrentMode == MF_SETTIME) { Tb_StopBlink()。 CurrentMode = MF_CLOCK。 Tb_SetHour(GetHour())。 Tb_SetMin(GetMin())。 Tb_SetSec(GetSec())。 } else CurrentMode = MF_SETTIME。 }void OnButton43() { }void OnButton44() { }define LED_ON P3 amp。= ~BIT6/*******************************************************************************按鍵掃描部分*******************************************************************************/static void Delay(){ int i = 1000。 while(i)。}void OnButtonDown(uint8_t val){ switch(val) { case 11:OnButton11()。break。 case 12:OnButton12()。break。 case 13:OnButton13()。break。 case 14:OnButton14()。break。 case 21:OnButton21()。break。 case 22:OnButton22()。break。 case 23:OnButton23()。break。 case 24:OnButton24()。break。 case 31:OnButton31()。break。 case 32:OnButton32()。break。 case 33:OnButton33()。break。 case 34:OnButton34()。break。 case 41:OnButton41()。break。 case 42:OnButton42()。break。 case 43:OnButton43()。break。 case 44:OnButton44()。break。 default:break。 }}void KeyScan() //鍵盤掃描函數,使用行列反轉掃描法{ P1 = 0x0F。 //行線輸出全為0 Key_y = P1 amp。 0x0F。 //讀入列線值 if(Key_y != 0x0F) //先檢測有無按鍵按下 { Delay()。 //去抖 Key_y = P1 amp。 0x0F。 //讀入列線值 if(Key_y != 0x0F) { P1 = Key_y | 0xf0。 //輸出當前列線值 Key_x = P1 amp。 0xf0。 //讀入行線值 switch(Key_x) { case 0xE0:Key_x = 1。break。 case 0xD0:Key_x = 2。break。 case 0xB0:Key_x = 3。break。 case 0x70:Key_x = 4。break。 } switch(Key_y) { case 0x0E:Key_y = 1。break。 case 0x0D:Key_y = 2。break。 case 0x0B:Key_y = 3。break。 case 0x07:Key_y = 4。break。 } // OnButtonDown(Key_y*10+Key_x)。 // while((P1amp。0xF0) != 0xF0)。 //return(cord_h*10+cord_l)。//鍵盤最后組合碼值 } }}void KeyEvent(void){ uint8_t tmp。 P1 = 0x0F。 tmp = P1 amp。 0x0F。 if((Key_Pressed == 0) amp。amp。 (tmp 0x0F)) { Key_Pressed = 1。 KeyScan()。 } else if ((Key_Pressed == 1) amp。amp。 (tmp == 0x0f)) { Key_Pressed = 0。 OnButtonDown(Key_x*10+Key_y)。 } else {}}%按鍵部分includevoid UartInit(void){// TR0 = 0。// TMOD amp。= 0x0f。// TMOD |= 0x20。// TH1 = 0xfd。// TL1 = 0xfd。// //TR0 = 0。// TR1 = 1。// SM0 = 1。// SM1 = 1。// EA = 1。// ES = 0。// //TI = 0。 SCON=0x80。 PCON=0x00。 EA=1。 ES=0。}void UartSendData(uint8_t dat){ uint8_t i=100。 SBUF = dat。 //EA = 0。 //while(!TI)。 while(i)。}//void ser() interrupt 4 using 1//{// //}include define NONE 0uint8_t _TubeVal[6] = {0,0,0,0,0,0}。uint8_t CursorPos = 0。BOOL bVisible = TRUE。sbit DULA = P2^6。sbit WELA = P2^7。code unsigned char TubeTab[] = {0xFF,0xFE,0xFD,0xFB,0xF7,0xEF,0xDF}。code unsigned char NumberTab[] = {0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F}。static void Delay(){ int i = 10。 while(i)。}void Tb_SetNumber(uint32_t val){ uint8_t i = 0。 uint32_t n = 100000。 for(i = 0。i 6。i++) { _TubeVal[i] = NumberTab[val/n%10]。 n /=10。 }}void Tb_SetHour(uint8_t hour)
點擊復制文檔內容
規(guī)章制度相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1