Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
tiandiyishaou committed May 9, 2023
1 parent c301a93 commit f9c91b0
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 30 deletions.
87 changes: 59 additions & 28 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,67 @@

// A task runner that calls the PXT compiler and
{
"version": "0.1.0",
"version": "2.0.0",

// The command is pxt. Assumes that PXT has been installed using npm install -g pxt
"command": "pxt",

// The command is a shell script
"isShellCommand": true,

// Show the output window always.
"showOutput": "always",

"tasks": [{
"taskName": "deploy",
"isBuildCommand": true,
"problemMatcher": "$tsc",
"args": [""]
}, {
"taskName": "build",
"isTestCommand": true,
"problemMatcher": "$tsc",
"args": [""]
}, {
"taskName": "clean",
"isTestCommand": true,
"problemMatcher": "$tsc",
"args": [""]
}, {
"taskName": "serial",
"isTestCommand": true,
"problemMatcher": "$tsc",
"args": [""]
}]
"tasks": [
{
"label": "deploy",
"type": "shell",
"command": "pxt",
"args": [
"deploy",
""
],
"problemMatcher": "$tsc",
"group": {
"_id": "build",
"isDefault": false
}
},
{
"label": "build",
"type": "shell",
"command": "pxt",
"args": [
"build",
""
],
"problemMatcher": "$tsc",
"group": {
"_id": "test",
"isDefault": false
}
},
{
"label": "clean",
"type": "shell",
"command": "pxt",
"args": [
"clean",
""
],
"problemMatcher": "$tsc",
"group": {
"_id": "test",
"isDefault": false
}
},
{
"label": "serial",
"type": "shell",
"command": "pxt",
"args": [
"serial",
""
],
"problemMatcher": "$tsc",
"group": {
"_id": "test",
"isDefault": false
}
}
]
}
36 changes: 36 additions & 0 deletions .vscode/tasks.json.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

// A task runner that calls the PXT compiler and
{
"version": "0.1.0",

// The command is pxt. Assumes that PXT has been installed using npm install -g pxt
"command": "pxt",

// The command is a shell script
"isShellCommand": true,

// Show the output window always.
"showOutput": "always",

"tasks": [{
"taskName": "deploy",
"isBuildCommand": true,
"problemMatcher": "$tsc",
"args": [""]
}, {
"taskName": "build",
"isTestCommand": true,
"problemMatcher": "$tsc",
"args": [""]
}, {
"taskName": "clean",
"isTestCommand": true,
"problemMatcher": "$tsc",
"args": [""]
}, {
"taskName": "serial",
"isTestCommand": true,
"problemMatcher": "$tsc",
"args": [""]
}]
}
2 changes: 1 addition & 1 deletion StartbitV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ namespace StartbitV2 {
}


//% blockId="init_led" block="Initialize RGB led"
//% blockId="startbit_initRGBLight" block="Initialize RGB led"
//% weight=100
//% subcategory=LED
export function startbit_initRGBLight() {
Expand Down
2 changes: 1 addition & 1 deletion _locales/zh/StartbitV2-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"StartbitV2.ASR_init|block":"初始化语音识别模块|%port",
"StartbitV2.lineFollow_iic_init|block":"初始化四路巡线传感器|%port",
"StartbitV2.avoidSensor_init|block":"初始化避障传感器|%port",
"StartbitV2.init_led|block":"初始化彩灯",
"StartbitV2.startbit_initRGBLight|block":"初始化彩灯",

"StartbitV2.startbit_iic.port3|block":"接口3",
"StartbitV2.startbit_iic.port4|block":"接口4",
Expand Down

0 comments on commit f9c91b0

Please sign in to comment.