mini增加网络请求和板载显示绘制指针

This commit is contained in:
Irene-Maxine
2024-09-20 23:18:24 +08:00
parent fbbf82d4a4
commit 61ae2048fb
14 changed files with 50609 additions and 126 deletions

View File

@@ -1453,4 +1453,20 @@ export const onboard_tft_display_shape_circle = {
"previousStatement": null
});
}
};
};
export const draw_pointer = {
init: function() {
this.setColour(DISPLAY_ONBOARD_HUE);
this.appendDummyInput()
.appendField(Blockly.Msg.DRAW_POINTER)
.appendField(Blockly.Msg.DRAW_POINTER_ANGLE);
this.appendValueInput('angle');
this.appendDummyInput()
.appendField('°');
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setInputsInline(true);
this.setTooltip(Blockly.Msg.DRAW_POINTER_TOOLTIP);
}
};