Update(boards): 更新micropython esp板卡config
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
"{indexPath}/../micropython/build/lib",
|
"{indexPath}/../micropython/build/lib",
|
||||||
"{indexPath}/build/lib"
|
"{indexPath}/build/lib"
|
||||||
],
|
],
|
||||||
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"",
|
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"",
|
||||||
"filePath": "{indexPath}/build/upload/main.py",
|
"filePath": "{indexPath}/build/upload/main.py",
|
||||||
"copyLib": false,
|
"copyLib": false,
|
||||||
"reset": []
|
"reset": []
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"{indexPath}/build/lib",
|
"{indexPath}/build/lib",
|
||||||
"{indexPath}/../micropython/build/lib"
|
"{indexPath}/../micropython/build/lib"
|
||||||
],
|
],
|
||||||
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"",
|
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"",
|
||||||
"filePath": "{indexPath}/build/upload/main.py",
|
"filePath": "{indexPath}/build/upload/main.py",
|
||||||
"copyLib": false,
|
"copyLib": false,
|
||||||
"reset": []
|
"reset": []
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"{indexPath}/../micropython/build/lib",
|
"{indexPath}/../micropython/build/lib",
|
||||||
"{indexPath}/build/lib"
|
"{indexPath}/build/lib"
|
||||||
],
|
],
|
||||||
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"",
|
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"",
|
||||||
"filePath": "{indexPath}/build/upload/main.py",
|
"filePath": "{indexPath}/build/upload/main.py",
|
||||||
"copyLib": false,
|
"copyLib": false,
|
||||||
"reset": []
|
"reset": []
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"{indexPath}/build/lib",
|
"{indexPath}/build/lib",
|
||||||
"{indexPath}/../micropython/build/lib"
|
"{indexPath}/../micropython/build/lib"
|
||||||
],
|
],
|
||||||
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"",
|
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"",
|
||||||
"filePath": "{indexPath}/build/upload/main.py",
|
"filePath": "{indexPath}/build/upload/main.py",
|
||||||
"copyLib": false,
|
"copyLib": false,
|
||||||
"reset": []
|
"reset": []
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
"{indexPath}/build/lib",
|
"{indexPath}/build/lib",
|
||||||
"{indexPath}/../micropython/build/lib"
|
"{indexPath}/../micropython/build/lib"
|
||||||
],
|
],
|
||||||
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"",
|
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"",
|
||||||
"filePath": "{indexPath}/build/upload/main.py",
|
"filePath": "{indexPath}/build/upload/main.py",
|
||||||
"copyLib": false,
|
"copyLib": false,
|
||||||
"reset": []
|
"reset": []
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"{indexPath}/build/lib",
|
"{indexPath}/build/lib",
|
||||||
"{indexPath}/../micropython/build/lib"
|
"{indexPath}/../micropython/build/lib"
|
||||||
],
|
],
|
||||||
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"",
|
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"",
|
||||||
"filePath": "{indexPath}/build/upload/main.py",
|
"filePath": "{indexPath}/build/upload/main.py",
|
||||||
"copyLib": false,
|
"copyLib": false,
|
||||||
"reset": []
|
"reset": []
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"{indexPath}/build/lib",
|
"{indexPath}/build/lib",
|
||||||
"{indexPath}/../micropython/build/lib"
|
"{indexPath}/../micropython/build/lib"
|
||||||
],
|
],
|
||||||
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"",
|
"command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"",
|
||||||
"filePath": "{indexPath}/build/upload/main.py",
|
"filePath": "{indexPath}/build/upload/main.py",
|
||||||
"copyLib": false,
|
"copyLib": false,
|
||||||
"reset": [],
|
"reset": [],
|
||||||
|
|||||||
@@ -523,6 +523,8 @@ BU.uploadByCmd = async function (layerNum, port, command) {
|
|||||||
const code = editor.getCode();
|
const code = editor.getCode();
|
||||||
if (upload.copyLib) {
|
if (upload.copyLib) {
|
||||||
BU.copyLib(upload.filePath, code);
|
BU.copyLib(upload.filePath, code);
|
||||||
|
} else {
|
||||||
|
BU.copyLib(upload.filePath, '');
|
||||||
}
|
}
|
||||||
fs_extra.outputFile(upload.filePath, code)
|
fs_extra.outputFile(upload.filePath, code)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user