Update: 使用adafruit-esptool烧录Micropython ESP32S2固件

This commit is contained in:
王立帮
2024-07-21 22:07:09 +08:00
parent eda4a88758
commit a963833804
14 changed files with 202 additions and 18 deletions

View File

@@ -454,6 +454,7 @@ class StatusBarSerial extends PageBase {
async open() {
await this.#serial_.open(this.#config_.baud);
await this.#serial_.sleep(200);
await this.#serial_.setDTRAndRTS(this.#config_.dtr, this.#config_.rts);
if (SELECTED_BOARD?.serial?.ctrlCBtn) {
await this.#serial_.sleep(500);
@@ -477,6 +478,7 @@ class StatusBarSerial extends PageBase {
await this.#serial_.close();
} else {
await this.#serial_.open();
await this.#serial_.sleep(200);
await this.#serial_.setDTRAndRTS(this.#config_.dtr, this.#config_.rts);
this.startRead();
}