支持按键开关rf射频功能

This commit is contained in:
OPTOC
2025-10-28 11:25:13 +08:00
parent 2800c2660b
commit 5932e44c3e
5 changed files with 52 additions and 24 deletions

View File

@@ -13,6 +13,13 @@
#define FC_ADDRESS "0x08000000"
#define DATA_HANDLE_BUFFER_SIZE 4096
#define RF_OFF_COLOR RGB_COLOR_NONE //关闭射频灯的颜色指示
#define WIFI_AP_COLOR RGB_COLOR_WHITE //连接WIFI AP模式指示
#define WIFI_STA_COLOR RGB_COLOR_PURPLE //连接WIFI STA模式指示
#define BLE_COLOR RGB_COLOR_GREEN //连接BLE模式指示
#define NO_CONNECT_COLOR_BLE_AP RGB_COLOR_GREEN_WHITE //未连接模式指示BLE+AP
#define NO_CONNECT_COLOR_BLE_STA RGB_COLOR_GREEN_PURPLE //未连接模式指示BLE+STA
typedef enum
{
DATA_HANDLE_IDLE = 0,
@@ -135,4 +142,6 @@ void data_handle_thread(void* arg);
*/
void pc_link_rgb_color(device_t* device);
int app_send_error_code(uint8_t error_code);