- #ifndef __LED_H
- #define __LED_H
- #include "sys.h"
-
- //////////////////////////////////////////////////////////////////////////////////
- //本程序只供学习使用,未经作者许可,不得用于其它任何用途
- //ALIENTEK STM32F407开发板
- //LED驱动代码
- //正点原子@ALIENTEK
- //技术论坛:www.openedv.com
- //创建日期:2014/5/2
- //版本:V1.0
- //版权所有,盗版必究。
- //Copyright(C) 广州市星翼电子科技有限公司 2014-2024
- //All rights reserved
- //////////////////////////////////////////////////////////////////////////////////
-
-
- //LED端口定义
- #define LED0 PFout(6) // Q0
- #define LED1 PFout(8) // Q1
- #define LED2 PFout(7) // Q2
- #define LED3 PFout(9) // Q3
- #define LED4 PIout(8) // Q4
- #define LED5 PEout(6) // Q5
- #define LED6 PEout(5) // Q6
- #define LED7 PEout(4) // Q7
-
- #define LED8 PGout(7) // Q10
- #define LED9 PGout(6) // Q11
- #define LED10 PHout(9) // Q12
- #define LED11 PHout(8) // Q13
- #define LED12 PHout(7) // Q14
- #define LED13 PHout(6) // Q15
- #define LED14 PFout(11) // Q16
- #define LED15 PHout(5) // Q20
-
-
- void LED_Init(void);//初始化
- #endif
|