修改时间元组转字符串

This commit is contained in:
Irene-Maxine
2025-02-21 23:17:09 +08:00
parent 9e6350a42f
commit e751fa9652
8 changed files with 45 additions and 49 deletions

View File

@@ -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);
}
};