資源簡介
內含全套的基于物聯網的智慧宿舍的代碼,運行有效,采用手機APP控制

代碼片段和文件信息
/**
********************************************************
*
*?@file??????Hal_infrared.c
*?@author????Gizwtis
*?@version???V2.3
*?@date??????2015-07-06
*
*?@brief?????機智云?只為智能硬件而生
*????????????Gizwits?Smart?Cloud??for?Smart?Products
*????????????鏈接|增值|開放|中立|安全|自有|自由|生態
*????????????www.gizwits.com
*
*********************************************************/
#include?
#include?“Hal_infrared/Hal_infrared.h“
void?IR_Init(void)
{
????GPIO_InitTypeDef?GPIO_InitStructure;
????RCC_APB2PeriphClockCmd(Infrared_GPIO_CLKENABLE);//使能PORTAPORTE時鐘
????GPIO_InitStructure.GPIO_Pin??=?Infrared_GPIO_PIN;
????GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_IPU;?//設置成上拉輸入
????GPIO_InitStructure.GPIO_Speed=GPIO_Speed_2MHz;
????GPIO_Init(Infrared_GPIO_PORT?&GPIO_InitStructure);
}
bool?IR_Handle(void)
{
????if(GPIO_ReadInputDataBit(Infrared_GPIO_PORT?Infrared_GPIO_PIN))
????{
????????return?0;
????}
????else
????{
????????return?1;
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????984??2015-08-31?00:01??智慧宿舍\Hal\Hal_infrared\hal_infrared.c
?????文件????????331??2015-08-31?00:01??智慧宿舍\Hal\Hal_infrared\Hal_infrared.h
?????文件???????5690??2015-08-31?00:01??智慧宿舍\Hal\Hal_key\hal_key.c
?????文件????????990??2015-08-31?00:01??智慧宿舍\Hal\Hal_key\Hal_key.h
?????文件???????2162??2016-07-24?00:41??智慧宿舍\Hal\Hal_led\Hal_led.c
?????文件????????774??2015-08-31?00:01??智慧宿舍\Hal\Hal_led\Hal_led.h
?????文件???????3547??2015-08-31?00:01??智慧宿舍\Hal\hal_motor\hal_motor.c
?????文件????????488??2015-08-31?00:01??智慧宿舍\Hal\hal_motor\Hal_motor.h
?????文件???????2832??2015-08-31?00:01??智慧宿舍\Hal\Hal_rgb_led\hal_rgb_led.c
?????文件????????759??2015-08-31?00:01??智慧宿舍\Hal\Hal_rgb_led\Hal_rgb_led.h
?????文件???????2551??2015-08-31?00:01??智慧宿舍\Hal\hal_temp_hum\hal_temp_hum.c
?????文件???????1191??2015-08-31?00:01??智慧宿舍\Hal\hal_temp_hum\Hal_temp_hum.h
?????文件???????1771??2015-08-31?00:01??智慧宿舍\Hal\hal_temp_hum\sys.h
?????文件???????8358??2016-07-30?10:54??智慧宿舍\Hal\Hal_Usart\hal_uart.c
?????文件???????1987??2016-07-23?22:53??智慧宿舍\Hal\Hal_Usart\hal_uart.h
?????文件??????16489??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\CoreSupport\core_cm3.c
?????文件??????83896??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\CoreSupport\core_cm3.h
?????文件??????26014??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\Release_Notes.html
?????文件??????15398??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s
?????文件??????15145??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s
?????文件??????15346??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd_vl.s
?????文件??????12079??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s
?????文件??????13352??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s
?????文件??????12458??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s
?????文件??????13758??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s
?????文件??????15597??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_xl.s
?????文件??????12604??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_cl.s
?????文件??????12695??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd.s
?????文件??????12040??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd_vl.s
?????文件???????9471??2015-08-31?00:01??智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld.s
............此處省略259個文件信息
- 上一篇:JUCE_API中文版.pdf
- 下一篇:程序員專屬壁紙
評論
共有 條評論