TVOC传感器修改
This commit is contained in:
@@ -371,12 +371,13 @@ export const sensor_use_i2c_init = {
|
||||
[Blockly.Msg.MixGo_MPU9250 + "(ADXL345)", "ADXL345"],
|
||||
["RFID", "RFID"],
|
||||
[Blockly.Msg.MIXLY_RADAR_SENSOR + "(CBR817)", "CBR817"],
|
||||
[Blockly.Msg.MIXLY_AipSpeech_asr + "(CI130X)", "CI130X"]
|
||||
[Blockly.Msg.MIXLY_AipSpeech_asr + "(CI130X)", "CI130X"],
|
||||
[Blockly.Msg.MIXLY_TVOC_CO2_SENSOR + "(AGS10)","AGS10" ]
|
||||
]), "key");
|
||||
this.setInputsInline(true);
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setFieldValue("LTR308", "key");
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1859,7 +1860,13 @@ export const tvoc_get_data = {
|
||||
.appendField(Blockly.Msg.MIXLY_TVOC_CO2_SENSOR)
|
||||
.setCheck("var");
|
||||
this.appendDummyInput("")
|
||||
.appendField(Blockly.Msg.MIXLY_TVOC_CO2_SENSOR_GRT_DATA)
|
||||
.appendField(Blockly.Msg.MIXLY_GET)
|
||||
.appendField(new Blockly.FieldDropdown([
|
||||
[Blockly.Msg.MIXLY_TVOC_CO2_SENSOR_GRT_DATA1,"[0]"],
|
||||
[Blockly.Msg.MIXLY_TVOC_CO2_SENSOR_GRT_DATA2,"[1]"],
|
||||
[Blockly.Msg.MIXLY_TVOC_CO2_SENSOR_GRT_DATA3,"[2]"],
|
||||
[Blockly.Msg.MIXLY_TVOC_CO2_SENSOR_GRT_DATA1+"、"+Blockly.Msg.MIXLY_TVOC_CO2_SENSOR_GRT_DATA2+"、"+Blockly.Msg.MIXLY_TVOC_CO2_SENSOR_GRT_DATA3 , ""]
|
||||
]),"key")
|
||||
this.setOutput(true, Number);
|
||||
this.setInputsInline(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user