实现基本串口回传
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
/* 驱动 */
|
||||
#include "drivers/ws2812_spi/ws2812_spi.h"
|
||||
#include "drivers/ws2812_spi/ws2812_spi_shell.h"
|
||||
|
||||
#include "drivers/sertrf/sertrf.h"
|
||||
/* 通用模块 */
|
||||
#include "button/button.h"
|
||||
|
||||
@@ -66,7 +66,9 @@ void work_app_main(void *arg)
|
||||
// lib_shell_register(); // 静态库接口命令
|
||||
|
||||
/* 初始化按键检测和控制 */
|
||||
btn_attach(&g_cfg_board->key_reset, _change_mode_event_button, EVENT_PRESS_UP | EVENT_PRESS_DOWN | EVENT_LONG_PRESS_HOLD);
|
||||
// btn_attach(&g_cfg_board->key_reset, _change_mode_event_button, EVENT_PRESS_UP | EVENT_PRESS_DOWN | EVENT_LONG_PRESS_HOLD);
|
||||
|
||||
sertrf_init();
|
||||
|
||||
/* 启动 shell */
|
||||
os_thread_sleep(100);
|
||||
|
||||
Reference in New Issue
Block a user