修改外接四位数码屏、新增mini板载执行 麦克风
This commit is contained in:
@@ -1806,4 +1806,35 @@ export const get_keyboard_light = {
|
||||
this.setOutput(true);
|
||||
this.setInputsInline(true);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export const set_microphone_amplification = {
|
||||
init: function () {
|
||||
this.setColour(ACTUATOR_ONBOARD_HUE);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.LISTS_SET_INDEX_SET + Blockly.Msg.MIXLY_MICROPHONE_AMPLIFICATION)
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldDropdown([
|
||||
['4x', "0"],
|
||||
['8x', "1"],
|
||||
['16x', "2"],
|
||||
['32x', "3"]
|
||||
]), 'times');
|
||||
this.setPreviousStatement(true);
|
||||
this.setNextStatement(true);
|
||||
this.setInputsInline(true);
|
||||
}
|
||||
};
|
||||
|
||||
export const record_audio = {
|
||||
init: function () {
|
||||
this.setColour(ACTUATOR_ONBOARD_HUE);
|
||||
this.appendValueInput('str')
|
||||
.appendField(Blockly.Msg.MIXPY_AI_AUDIO);
|
||||
this.appendValueInput('time')
|
||||
.appendField(Blockly.Msg.MIXPY_AI_AUDIO_TIME);
|
||||
this.setPreviousStatement(true);
|
||||
this.setNextStatement(true);
|
||||
this.setInputsInline(true);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user