在线时间60 小时
UID2104222
注册时间2014-11-14
NXP金币0
TA的每日心情 | 擦汗 2016-11-17 14:28 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]初来乍到
高级会员

- 积分
- 945
- 最后登录
- 2017-3-15
|

楼主 |
发表于 2016-1-18 23:39:20
|
显示全部楼层
增加点:
if( g_curr_send_buf[0] == 'A' )
GPIO_HAL_SetPinOutput( LED0_GPIO,LED0_PIN);
if( g_curr_send_buf[0] == 'b' )
GPIO_HAL_ClearPinOutput(LED1_GPIO,LED1_PIN);
if( g_curr_send_buf[0] == 'B' )
GPIO_HAL_SetPinOutput( LED1_GPIO,LED1_PIN);
if( g_curr_send_buf[0] == 'c' )
GPIO_HAL_ClearPinOutput(LED2_GPIO,LED2_PIN);
if( g_curr_send_buf[0] == 'C' )
GPIO_HAL_SetPinOutput( LED2_GPIO,LED2_PIN);
|
|