Upload files to "3-5 GPIO_光敏传感器/Hardware"
This commit is contained in:
15
3-5 GPIO_光敏传感器/Hardware/Lightsensor.h
Normal file
15
3-5 GPIO_光敏传感器/Hardware/Lightsensor.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef __LIGHTSENSOR_R
|
||||
#define __LIGHTSENSOR_R
|
||||
|
||||
|
||||
|
||||
void LightSensor_Init(void);
|
||||
|
||||
/*!< Pin x selected ON or OFF
|
||||
parameter opt is high or low;表示高低电平
|
||||
*/
|
||||
|
||||
/* 光敏传感器 返回函数 */
|
||||
uint8_t GPIOB_LightSensor_Get(uint16_t GPIO_Pin_x);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user