Upload files to "3-5 GPIO_光敏传感器/Hardware"

This commit is contained in:
2026-02-21 20:02:34 -05:00
parent 6a3b8de88d
commit 374827de9b
3 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#ifndef __LED_H
#define __LED_H
enum V_opt{
high,
low
};
void LED_Init(void);//初始化
void GPIOA_LED(uint16_t GPIO_Pin_x,enum V_opt opt);//点灯
void GPIOA_LED_Turn(uint16_t GPIO_Pin_x);//实现翻转电平
#endif