添加RF、wifi、ble功能开关,以及在连接ble关闭wifi、连接wifi关闭ble的功能
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "key.h"
|
||||
|
||||
#include "sertrf.h"
|
||||
button_t btn;
|
||||
|
||||
cfg_board_pin_io_t key_switch = {
|
||||
@@ -34,11 +34,13 @@ static void my_button_handler(button_event_t evt) {
|
||||
break;
|
||||
case EVT_DOUBLE_CLICK: //双击
|
||||
// SYS_LOG_INF("[Event] DOUBLE_CLICK");
|
||||
sertrf_rf_switch(1);
|
||||
break;
|
||||
case EVT_LONG_PRESS: //长按
|
||||
SYS_LOG_INF("[Event] LONG_PRESS");
|
||||
Examples_run();
|
||||
rgb_Indicator_light_off(0);
|
||||
// Examples_run();
|
||||
rgb_Indicator_light_off(0); //如果处理有变色,需要该函数先调用
|
||||
sertrf_rf_switch(0);
|
||||
break;
|
||||
case EVT_SINGLE_LONG_PRESS: //单击后长按
|
||||
rgb_Indicator_light_off(0);
|
||||
|
||||
Reference in New Issue
Block a user