From e751fa9652c5c487717b559bffa040f187f69777 Mon Sep 17 00:00:00 2001 From: Irene-Maxine <114802521+Irene-Maxine@users.noreply.github.com> Date: Fri, 21 Feb 2025 23:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E5=85=83?= =?UTF-8?q?=E7=BB=84=E8=BD=AC=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../micropython/blocks/actuator_onboard.js | 2 +- .../micropython/blocks/sensor_onboard.js | 5 ++--- .../default_src/micropython_educore/template.xml | 15 +++++++-------- boards/default_src/micropython_esp32/template.xml | 14 +++++++------- .../default_src/micropython_esp32c2/template.xml | 15 +++++++-------- .../default_src/micropython_esp32c3/template.xml | 14 +++++++------- .../default_src/micropython_esp32s2/template.xml | 15 +++++++-------- .../default_src/micropython_esp32s3/template.xml | 14 +++++++------- 8 files changed, 45 insertions(+), 49 deletions(-) diff --git a/boards/default_src/micropython/blocks/actuator_onboard.js b/boards/default_src/micropython/blocks/actuator_onboard.js index 60433909..64f8f690 100644 --- a/boards/default_src/micropython/blocks/actuator_onboard.js +++ b/boards/default_src/micropython/blocks/actuator_onboard.js @@ -1557,7 +1557,7 @@ export const analog_ble_keyboard_mouse_send_battery = { this.appendDummyInput() .appendField(Blockly.Msg.MIXLY_BLUETOOTH + Blockly.Msg.MIXLY_KEYBOARD_AND_MOUSE); this.appendValueInput('battery') - .appendField(Blockly.Msg.MIXLY_SEND_KEYBOARD + Blockly.Msg.MIXLY_MOUSE + Blockly.Msg.MIXLY_BELONG + Blockly.Msg.MIXLY_BATTERY + Blockly.Msg.LISTS_SET_INDEX_INPUT_TO); + .appendField(Blockly.Msg.LISTS_SET_INDEX_SET + Blockly.Msg.MIXLY_BATTERY + Blockly.Msg.LISTS_SET_INDEX_INPUT_TO); this.appendDummyInput() .appendField('%'); this.setPreviousStatement(true); diff --git a/boards/default_src/micropython/blocks/sensor_onboard.js b/boards/default_src/micropython/blocks/sensor_onboard.js index 53dcec9d..9de59773 100644 --- a/boards/default_src/micropython/blocks/sensor_onboard.js +++ b/boards/default_src/micropython/blocks/sensor_onboard.js @@ -616,13 +616,12 @@ export const onboard_RTC_get_timetuple_to_str = { init: function () { this.setColour(SENSOR_ONBOARD_HUE); this.appendValueInput('CONTENT') - .appendField('RTC '+Blockly.Msg.blockpy_USE_TUPLE) + .appendField(Blockly.Msg.MIXLY_GPS_TIME + Blockly.Msg.MIXLY_MICROBIT_TYPE_TUPLE) .setCheck() this.appendDummyInput() - .appendField( Blockly.Msg.MATH_ZHW + Blockly.Msg.MIXLY_GPS_TIME+Blockly.Msg.LANG_MATH_STRING) + .appendField( Blockly.Msg.A_TO_B + Blockly.Msg.MIXLY_GPS_TIME + Blockly.Msg.LANG_MATH_STRING) this.setOutput(true, String); this.setInputsInline(true); - this.setTooltip(Blockly.Msg.MIXLY_ESP32_RTC_GET_TIME_TOOLTIP); } }; diff --git a/boards/default_src/micropython_educore/template.xml b/boards/default_src/micropython_educore/template.xml index 260dc1e4..8e41990e 100644 --- a/boards/default_src/micropython_educore/template.xml +++ b/boards/default_src/micropython_educore/template.xml @@ -1587,13 +1587,6 @@ - - - - 2023,1,1,12,0,0 - - - @@ -1606,7 +1599,13 @@ - + + + + 2023,1,1,12,0,0 + + + - - - - 2023,1,1,12,0,0 - - - @@ -1510,6 +1503,13 @@ + + + + 2023,1,1,12,0,0 + + + diff --git a/boards/default_src/micropython_esp32c2/template.xml b/boards/default_src/micropython_esp32c2/template.xml index 77dba2b0..e55ff670 100644 --- a/boards/default_src/micropython_esp32c2/template.xml +++ b/boards/default_src/micropython_esp32c2/template.xml @@ -1510,13 +1510,6 @@ - - - - 2023,1,1,12,0,0 - - - @@ -1529,7 +1522,13 @@ - + + + + 2023,1,1,12,0,0 + + + - - - - 2023,1,1,12,0,0 - - - @@ -1519,6 +1512,13 @@ + + + + 2023,1,1,12,0,0 + + + - - - - 2023,1,1,12,0,0 - - - @@ -1485,7 +1478,13 @@ - + + + + 2023,1,1,12,0,0 + + + - - - - 2023,1,1,12,0,0 - - - @@ -1539,6 +1532,13 @@ + + + + 2023,1,1,12,0,0 + + +