Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- #ifndef _LED_H_
- #define _LED_H_
-
- #include "stm32f7xx_hal.h"
-
- #define ON 1
- #define OFF 0
-
-
- //输出端口定义
- #define Y0_GPIO_PORT GPIOF
- #define Y0_GPIO_PIN GPIO_PIN_6
- #define Y1_GPIO_PORT GPIOF
- #define Y1_GPIO_PIN GPIO_PIN_8
- #define Y2_GPIO_PORT GPIOF
- #define Y2_GPIO_PIN GPIO_PIN_7
-
-
- void LED0(uint8_t state);
- void LED1(uint8_t state);
- void LED2(uint8_t state);
- void LED0_Toggle(void);
- void LED1_Toggle(void);
- void LED2_Toggle(void);
-
- #endif/*_LED_H_*/
|