打印

想知道这段程序的意思

[复制链接]
157|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
博斯|  楼主 | 2018-6-7 14:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
pi, GPIO, IO, gp, se

#define ON  0

#define OFF 1



#define LED1(a)        if (a)        \

                                        GPIO_SetBits(GPIOB,GPIO_Pin_0);\

                                        else                \

                                        GPIO_ResetBits(GPIOB,GPIO_Pin_0)



#define LED2(a)        if (a)        \

                                        GPIO_SetBits(GPIOC,GPIO_Pin_4);\

                                        else                \

                                        GPIO_ResetBits(GPIOC,GPIO_Pin_4)



#define LED3(a)        if (a)        \

                                        GPIO_SetBits(GPIOC,GPIO_Pin_3);\

                                        else                \

                                        GPIO_ResetBits(GPIOC,GPIO_Pin_3)



使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

412

主题

412

帖子

0

粉丝