This commit is contained in:
lmx
2025-11-25 15:27:26 +08:00
parent 60a4e95386
commit 5c7d9ab822
28 changed files with 172032 additions and 172041 deletions

View File

@ -291,8 +291,8 @@ void xtell_task_create(void){
// MPU9250_Mag_Init();
//iic总线设备扫描
extern void i2c_scanner_probe(void);
i2c_scanner_probe();
// extern void i2c_scanner_probe(void);
// i2c_scanner_probe();
xlog("xtell_task_create\n");

View File

@ -214,7 +214,13 @@ void le_user_app_event_handler(struct sys_event* event){
if(event->u.app.buffer[2] == 0x01){ //后面的数据长度 1
switch (event->u.app.buffer[3]){
case 0xff: //测试
u8 device_buff[10];
u8 founds = 0;
extern void i2c_scanner_probe(u8* device_addr, u8* found_number);
i2c_scanner_probe(device_buff,&founds);
for(int i = 0;i < founds;i++){
send_data_to_ble_client(&device_buff,founds);
}
break;
default:
break;