Skip to content

Commit 17d38b0

Browse files
committed
更新 maqueen.ts, _locales/zh-cn/maqueen-strings.json, _locales/zh-tw/maqueen-strings.json
1 parent e8bad75 commit 17d38b0

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

_locales/zh-cn/maqueen-strings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"Maqueen_V5.getBatteryData|block": "读取电池电量 %type ",
8181
"Maqueen_V5.BleCmdDefault|block": "麦昆V5蓝牙默认控制配置%cmd",
8282
"Maqueen_V5.BleGetCmd|block": "获取麦昆V5蓝牙命令",
83-
"Maqueen_V5.BlecallbackUser|block": "当接收到麦昆V5蓝牙命令"
83+
"Maqueen_V5.BlecallbackUser|block": "当接收到麦昆V5蓝牙命令",
84+
"Maqueen_V5.BleModule|block": "麦昆V5蓝牙%cmd"
8485

8586
}

_locales/zh-tw/maqueen-strings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,6 @@
9393
"Maqueen_V5.getBatteryData|block": "讀取電池電量 %type ",
9494
"Maqueen_V5.BleCmdDefault|block": "麥昆V5藍牙默認控制配置%cmd",
9595
"Maqueen_V5.BleGetCmd|block": "獲取麥昆V5藍牙命令",
96-
"Maqueen_V5.BlecallbackUser|block": "當接收到麥昆V5藍牙命令"
96+
"Maqueen_V5.BlecallbackUser|block": "當接收到麥昆V5藍牙命令",
97+
"Maqueen_V5.BleModule|block": "麥昆V5藍牙%cmd"
9798
}

maqueen.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ namespace Maqueen_V5 {
613613
const T2_DEFAULT =77
614614
const T3_DEFAULT =78
615615
const BLECMD =80
616-
616+
const BLEEN = 81
617617
/**
618618
* Init I2C until success
619619
*/
@@ -1034,7 +1034,18 @@ namespace Maqueen_V5 {
10341034
if (temp_data > 100) temp_data=100;
10351035
return temp_data;
10361036
}
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+
// }
10381049
// /**
10391050
// * Bluetooth of Maqueen V5 commands control the configuration by default
10401051
// * @param Received Bluetooth command

0 commit comments

Comments
 (0)