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

正文內(nèi)容

無線溫控風(fēng)扇研究與利用畢業(yè)設(shè)計-資料下載頁

2025-06-24 23:18本頁面
  

【正文】 } basicRfReceiveOff()。 // Main loop while (TRUE) { memset(strTemp, 0, ARRAY_SIZE(strTemp))。 //UartSendString(str, 8)。 if defined(FLOAT_TEMP) fTemp = floatReadDs18B20()。 sprintf(strTemp, %.01f, fTemp)。 //UartSendString(strTemp, 5)。 else ucTemp = ReadDs18B20()。 strTemp[0] = ucTemp/10+48。 strTemp[1] = ucTemp%10+48。 //UartSendString(strTemp, 2)。 endif //UartSendString(\n, 1)。 Delay_ms(100)。 pTxData[0] = strTemp[0]。 pTxData[1] = strTemp[1]。 /* if(halButtonPushed() == HAL_BUTTON_1){ //LIGHT_ADDR目的短地址。pTxData 指向發(fā)送緩沖區(qū)的指針。 APP_PAYLOAD_LENGTH發(fā)送數(shù)據(jù)長度 basicRfSendPacket(LIGHT_ADDR, pTxData, APP_PAYLOAD_LENGTH)。 // Put MCU to sleep. It will wake up on joystick interrupt halIntOff()。 halMcuSetLowPowerMode(HAL_MCU_LPM_3)。 // Will turn on global // interrupt enable halIntOn()。 }*/ if(fa_flag==1) { fa_flag=0。 basicRfSendPacket(LIGHT_ADDR, pTxData, APP_PAYLOAD_LENGTH)。 halIntOff()。 halMcuSetLowPowerMode(HAL_MCU_LPM_3)。 // Will turn on global // interrupt enable halIntOn()。 } }}/************************************************************************************ @fn main** @brief This is the main entry of the Light Switch application.* After the application modes are chosen the switch can* send toggle mands to a light device.** @param basicRfConfig file scope variable. Basic RF configuration* data* appState file scope variable. Holds application state** @return none*/void main(void){ // Config basicRF = PAN_ID。 = RF_CHANNEL。 = TRUE。 ifdef SECURITY_CCM = key。endif // Initalise board peripherals halBoardInit()。 //halJoystickInit()。 // Initalise hal_rf 硬件抽象層的rf進(jìn)行初始化初 if(halRfInit()==FAILED) { HAL_ASSERT(FALSE)。 } InitCLK()。 InitUart()。 InitT3()。 //P0SEL amp。= 0x7f。 P1DIR |= 0x01。 P0INP amp。= ~0x90。 // Indicate that device is powered halLedSet(1)。 /*// Print Logo and splash screen on LCD utilPrintLogo(Light Switch)。 // Wait for user to press S1 to enter menu while (halButtonPushed()!=HAL_BUTTON_1)。 halMcuWaitMs(350)。 halLcdClear()。 // Set application role appMode = appSelectMode()。 halLcdClear()。*/ // Transmitter application if(appMode == SWITCH) { // No return from here appSwitch()。 //發(fā)射模塊 按鍵S1對應(yīng)P0_1 } // Receiver application else if(appMode == LIGHT) { // No return from here appLight()。 //接收模塊 LED1對應(yīng)P1_0 } // Role is undefined. This code should not be reached //HAL_ASSERT(FALSE)。 }//定時器T3中斷處理函數(shù)pragma vector = T3_VECTOR __interrupt void T3_ISR(void) { static int count,count1。//char str2[2]={0}。 // char t_shi,t_ge。 IRCON = 0x00。 //清中斷標(biāo)志, 也可由硬件自動完成 /* if(appMode == SWITCH) { if(count1==10) { //t_shi = (pTxData[0]amp。0x0f)。 //t_ge = (pTxData[1]amp。0x0f)。 P1 |= 0x0f。 P0 |= 0x0f。 P0_5 = 1。 P0_6 = 1。 P1 = (dofly_DuanMa[7]amp。0x0f)。 P0 amp。=0xf0。 P0 |= ((dofly_DuanMa[7]amp。0xf0)4)。 P0_5 = 0。 Delay_ms(10)。 P1 = (dofly_DuanMa[2]amp。0x0f)。 P0 amp。=0xf0。 P0 |= ((dofly_DuanMa[2]amp。0xf0)4)。 P0_6 = 0。 count1=0。 } count1++。 }*/ count++。 count1++。 if(count1==250) {fa_flag=1。 count1=0。 } /* if(jia_su==0) { Delay_ms(20)。 while(jia_su==0)。 jia_su=1。 if(PWM_ON=90) PWM_ON=PWM_ON+10。 } if(jian_su==0) { Delay_ms(20)。 while(jia_su==0)。 jian_su=1。 if(PWM_ON=10) PWM_ON=PWM_ON10。 } str2[0]=PWM_ON/10。 str2[1]=PWM_ON%10。 UartSendString(str2, 2)。*/ if(appMode == LIGHT) { if (count==PWM_ON) { DCOUT = 0。 //如果定時等于on的時間, } count++。 if(count == CYCLE) //反之低電平時間結(jié)束后返回高電平 { count=0。 if(PWM_ON!=0) //如果開啟時間是0 保持原來狀態(tài) { DCOUT = 1。 } } }}/***************************************************************************************** @fn appSelectMode** @brief Select application mode** @param none** @return uint8 Application mode chosen*/static uint8 appSelectMode(void){ halLcdWriteLine(1, Device Mode: )。 return utilMenuSelect(amp。pMenu)。}
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1