feat: Add rfid feature and .gitignore file

This commit is contained in:
lmx
2025-11-27 13:28:00 +08:00
parent 4af4f13ac6
commit f8c8b1ec8a
83 changed files with 145652 additions and 178823 deletions

View File

@ -83,7 +83,7 @@ extern u8 init_ok;
extern u8 sniff_out;
unsigned char xtell_bl_state=0; //存放经典蓝牙的连接状态0断开1是连接
u8 bt_newname =0;
unsigned char xt_ble_new_name[9] = "CM-22222";
unsigned char xt_ble_new_name[9] = "CM-33333";
static u16 play_poweron_ok_timer_id = 0;
// -- 初始化标志位 --
@ -94,6 +94,7 @@ u8 BMP280_init = 0x30; //气压计初始化
u16 SC7U22_calibration_id;
u16 start_collect_fuc_id;
u16 BLE_send_fuc_id;
u16 gsensor_test_id = 0;
//
///////////////////////////////////////////////////////////////////////////////////////////////////
extern int bt_hci_event_handler(struct bt_event *bt);
@ -213,6 +214,10 @@ void le_user_app_event_handler(struct sys_event* event){
if (event->u.app.buffer[0] == 0xBE && event->u.app.buffer[1] == 0xBB) {
if(event->u.app.buffer[2] == 0x01){ //后面的数据长度 1
switch (event->u.app.buffer[3]){
case 0x01:
extern void gsensor_test(void);
create_process(&gsensor_test_id,"gsensor_test",NULL,gsensor_test,1000);
break;
case 0xff: //测试
u8 device_buff[10];
u8 founds = 0;