From b64104272b8c104d4cd0942e7b9edf35562776ab Mon Sep 17 00:00:00 2001
From: Irene-Maxine <114802521+Irene-Maxine@users.noreply.github.com>
Date: Mon, 11 Aug 2025 09:28:20 +0800
Subject: [PATCH] =?UTF-8?q?Timer=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
boards/default_src/micropython/generators/system.js | 2 +-
boards/default_src/micropython_esp32/template.xml | 2 +-
boards/default_src/micropython_esp32c2/template.xml | 2 +-
boards/default_src/micropython_esp32c3/template.xml | 2 +-
boards/default_src/micropython_esp32s2/template.xml | 2 +-
boards/default_src/micropython_esp32s3/template.xml | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/boards/default_src/micropython/generators/system.js b/boards/default_src/micropython/generators/system.js
index de7dd76b..6028fb20 100644
--- a/boards/default_src/micropython/generators/system.js
+++ b/boards/default_src/micropython/generators/system.js
@@ -139,7 +139,7 @@ export const timer = function (_, generator) {
export const set_system_timer = function (_, generator) {
generator.definitions_['import_machine'] = 'import machine';
var v = generator.valueToCode(this, "VAR", generator.ORDER_NONE) || "None";
- var i = generator.valueToCode(this, "ID", generator.ORDER_NONE) || "None";
+ var i = generator.valueToCode(this, "PIN", generator.ORDER_NONE) || "None";
var period = generator.valueToCode(this, "period", generator.ORDER_NONE) || "0";
var mode = this.getFieldValue('mode');
var callback = generator.valueToCode(this, "callback", generator.ORDER_NONE) || "None";
diff --git a/boards/default_src/micropython_esp32/template.xml b/boards/default_src/micropython_esp32/template.xml
index 31e611b5..e003f4c9 100644
--- a/boards/default_src/micropython_esp32/template.xml
+++ b/boards/default_src/micropython_esp32/template.xml
@@ -254,7 +254,7 @@
- tim_6
+ tim_callback
diff --git a/boards/default_src/micropython_esp32c2/template.xml b/boards/default_src/micropython_esp32c2/template.xml
index f5a0bb55..6a5dee4f 100644
--- a/boards/default_src/micropython_esp32c2/template.xml
+++ b/boards/default_src/micropython_esp32c2/template.xml
@@ -229,7 +229,7 @@
- tim_6
+ tim_callback
diff --git a/boards/default_src/micropython_esp32c3/template.xml b/boards/default_src/micropython_esp32c3/template.xml
index 3ac0cf2d..31ea26fc 100644
--- a/boards/default_src/micropython_esp32c3/template.xml
+++ b/boards/default_src/micropython_esp32c3/template.xml
@@ -229,7 +229,7 @@
- tim_6
+ tim_callback
diff --git a/boards/default_src/micropython_esp32s2/template.xml b/boards/default_src/micropython_esp32s2/template.xml
index 94ccb6c7..89348d79 100644
--- a/boards/default_src/micropython_esp32s2/template.xml
+++ b/boards/default_src/micropython_esp32s2/template.xml
@@ -254,7 +254,7 @@
- tim_6
+ tim_callback
diff --git a/boards/default_src/micropython_esp32s3/template.xml b/boards/default_src/micropython_esp32s3/template.xml
index 46ec212d..83575a96 100644
--- a/boards/default_src/micropython_esp32s3/template.xml
+++ b/boards/default_src/micropython_esp32s3/template.xml
@@ -254,7 +254,7 @@
- tim_6
+ tim_callback