增加rtc获取时间字符串

This commit is contained in:
Irene-Maxine
2024-10-08 14:43:55 +08:00
parent 521b84087a
commit 3f685a249a
14 changed files with 211 additions and 149 deletions

View File

@@ -604,12 +604,22 @@ export const sensor_rtc_init = {
}
};
export const onboard_RTC_get_time_str = {
init: function () {
this.setColour(SENSOR_ONBOARD_HUE);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_RTC_GET_TIME_STR);
this.setOutput(true, String);
this.setInputsInline(true);
this.setTooltip(Blockly.Msg.MIXLY_ESP32_RTC_GET_TIME_TOOLTIP);
}
};
export const sensor_LTR308 = {
init: function () {
this.setColour(SENSOR_ONBOARD_HUE);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_ESP32_LIGHT);
.appendField(Blockly.Msg.MIXLY_RTC_GET_TIME_STR);
this.setOutput(true, Number);
this.setInputsInline(true);
this.setTooltip(Blockly.Msg.ESP32_SENSOR_NIXGO_LIGHT_TOOLTIP);