add scripts folder

This commit is contained in:
Terrence
2025-01-23 22:45:26 +08:00
parent c46052958f
commit c2dd384ed1
5 changed files with 7 additions and 2 deletions

View File

@@ -1,2 +0,0 @@
#!/bin/sh
esptool.py -p /dev/ttyACM0 -b 2000000 write_flash 0 releases/v0.9.9_bread-compact-wifi/merged-binary.bin

2
scripts/flash.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
esptool.py -p /dev/ttyACM0 -b 2000000 write_flash 0 ../releases/v0.9.9_bread-compact-wifi/merged-binary.bin

View File

@@ -2,6 +2,8 @@ import sys
import os
import json
# 切换到项目根目录
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def get_board_type():
with open("build/compile_commands.json") as f:

View File

@@ -8,6 +8,9 @@ import zipfile
import oss2
import json
# 切换到项目根目录
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def get_chip_id_string(chip_id):
return {
0x0000: "esp32",