图像处理更新

This commit is contained in:
Irene-Maxine
2025-10-30 20:12:42 +08:00
parent 09efdb5192
commit 9ee27ccad7
6 changed files with 556 additions and 243 deletions

View File

@@ -12,7 +12,7 @@ export const display_show_image = {
var version = Boards.getSelectedBoardKey()
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize);
}
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
@@ -40,7 +40,7 @@ export const display_show_image_or_string_delay = {
]), 'center')
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize);
}
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
@@ -304,7 +304,7 @@ export const display_shift = {
var version = Boards.getSelectedBoardKey()
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize);
}
var thisBlock = this;
this.setTooltip(function () {
@@ -397,7 +397,7 @@ export const display_clear = {
var version = Boards.getSelectedBoardKey()
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize);
}
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
@@ -1117,7 +1117,7 @@ export const onboard_tft_show_image_xy = {
var version = Boards.getSelectedBoardKey()
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize );
}
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
@@ -1172,7 +1172,7 @@ export const onboard_tft_show_image_or_string_delay = {
var version = Boards.getSelectedBoardKey()
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize);
}
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
@@ -1388,7 +1388,7 @@ export const onboard_tft_bright_point = {
var version = Boards.getSelectedBoardKey()
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize);
}
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
@@ -1405,7 +1405,7 @@ export const onboard_tft_fill = {
var version = Boards.getSelectedBoardKey()
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize);
}
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
@@ -1599,7 +1599,7 @@ export const onboard_tft_show_texts = {
var version = Boards.getSelectedBoardKey()
if (JSFuncs.getPlatform() === 'Python ESP32-S3') {
this.appendValueInput('boolean')
.appendField( Blockly.Msg.MIXLY_synchronize + ':');
.appendField( Blockly.Msg.MIXLY_synchronize);
}
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);