板载智能部分增加

This commit is contained in:
Irene-Maxine
2025-05-25 15:45:42 +08:00
parent b53548462a
commit 5c69891c4b
15 changed files with 846 additions and 315 deletions

View File

@@ -1079,7 +1079,25 @@ export const onboard_tft_show_image_xy = {
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setInputsInline(true);
this.setTooltip(Blockly.Msg.OLED_BITMAP_OR_STRING);
}
};
export const onboard_tft_show_image_xy_direct = {
init: function () {
this.setColour(DISPLAY_ONBOARD_HUE);
this.appendValueInput("x")
.setCheck(Number)
.appendField(Blockly.Msg.OLED_BITMAP)
.appendField('x');
this.appendValueInput("y")
.setCheck(Number)
.appendField('y');
this.appendValueInput("direct")
.setCheck(String)
.appendField(Blockly.Msg.MIXLY_AipImageClassify_Image + Blockly.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH);
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setInputsInline(true);
}
};