File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 80
80
"Maqueen_V5.getBatteryData|block" : " 读取电池电量 %type " ,
81
81
"Maqueen_V5.BleCmdDefault|block" : " 麦昆V5蓝牙默认控制配置%cmd" ,
82
82
"Maqueen_V5.BleGetCmd|block" : " 获取麦昆V5蓝牙命令" ,
83
- "Maqueen_V5.BlecallbackUser|block" : " 当接收到麦昆V5蓝牙命令"
83
+ "Maqueen_V5.BlecallbackUser|block" : " 当接收到麦昆V5蓝牙命令" ,
84
+ "Maqueen_V5.BleModule|block" : " 麦昆V5蓝牙%cmd"
84
85
85
86
}
Original file line number Diff line number Diff line change 93
93
"Maqueen_V5.getBatteryData|block" : " 讀取電池電量 %type " ,
94
94
"Maqueen_V5.BleCmdDefault|block" : " 麥昆V5藍牙默認控制配置%cmd" ,
95
95
"Maqueen_V5.BleGetCmd|block" : " 獲取麥昆V5藍牙命令" ,
96
- "Maqueen_V5.BlecallbackUser|block" : " 當接收到麥昆V5藍牙命令"
96
+ "Maqueen_V5.BlecallbackUser|block" : " 當接收到麥昆V5藍牙命令" ,
97
+ "Maqueen_V5.BleModule|block" : " 麥昆V5藍牙%cmd"
97
98
}
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ namespace Maqueen_V5 {
613
613
const T2_DEFAULT = 77
614
614
const T3_DEFAULT = 78
615
615
const BLECMD = 80
616
-
616
+ const BLEEN = 81
617
617
/**
618
618
* Init I2C until success
619
619
*/
@@ -1034,7 +1034,18 @@ namespace Maqueen_V5 {
1034
1034
if ( temp_data > 100 ) temp_data = 100 ;
1035
1035
return temp_data ;
1036
1036
}
1037
-
1037
+ // // /**
1038
+ // // * Enable or disable BLE
1039
+ // // */
1040
+ // // //% block="Bluetooth of Maqueen_v5 %cmd"
1041
+ // // //% weight=5
1042
+ // // //% group="Maqueen_v5"
1043
+ // export function BleModule(cmd: Patrolling) {
1044
+ // let allBuffer = pins.createBuffer(2);
1045
+ // allBuffer[0] = BLEEN;
1046
+ // allBuffer[1] = cmd;
1047
+ // pins.i2cWriteBuffer(I2CADDR, allBuffer);
1048
+ // }
1038
1049
// /**
1039
1050
// * Bluetooth of Maqueen V5 commands control the configuration by default
1040
1051
// * @param Received Bluetooth command
You can’t perform that action at this time.
0 commit comments