获取图像数据+上报图像

This commit is contained in:
Irene-Maxine
2025-06-16 13:09:25 +08:00
parent cc168a4bf8
commit bb7562ef5c
6 changed files with 54 additions and 0 deletions

View File

@@ -288,6 +288,21 @@ export const GET_PICTURE_DATA = {
}
};
export const GET_PICTURE_DATA_EXACT = {
init: function () {
this.setColour(AI_LOCAL_GRAPH_HUE);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_MICROBIT_PY_STORAGE_GET + Blockly.Msg.MIXLY_MICROBIT_IMAGE)
.appendField(new Blockly.FieldDropdown([
["RGB565" + Blockly.Msg.MIXLY_SD_DATA,"0"],
["JPG" + Blockly.Msg.MIXLY_SD_DATA,"1"],
[Blockly.Msg.MIXLY_JPG_base64_CODE + Blockly.Msg.MIXLY_SD_DATA ,"2"]
]),"kind")
this.setOutput(true);
this.setInputsInline(true);
}
};
export const SCREEN_SHOW_CAM_GRAPH_SHOOT = {
init: function () {
this.setColour(AI_LOCAL_GRAPH_HUE);
@@ -557,4 +572,15 @@ export const AI_STOP_ACQUISITION = {
this.setOutput(true);
this.setInputsInline(true);
}
};
export const MIXIO_REPORT_IMAGE_DATA = {
init: function () {
this.setColour(AI_LOCAL_GRAPH_HUE);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_REPORT_IMAGE_DATA + Blockly.Msg.LANG_CONTROLS_FOR_INPUT_FROM + Blockly.Msg.MIXLY_CHOOSE_AND_GET_DIR)
this.appendValueInput('SUB');
this.setOutput(true);
this.setInputsInline(true);
}
};