删除S3灯颜色
统一S3和mini_g2 的rfid
增加 角度弧度转换 所有板
增加 S3根据气压获取海拔
This commit is contained in:
Irene-Maxine
2025-03-26 19:24:36 +08:00
parent 3f41008f21
commit f835dd2f64
25 changed files with 379 additions and 80 deletions

View File

@@ -896,6 +896,22 @@ export const sensor_ms5611_extern = {
}
};
export const sensor_ms5611_extern_altitude = {
init: function () {
this.setColour(SENSOR_EXTERN_HUE);
this.appendValueInput('SUB')
.appendField(Blockly.Msg.MIXLY_Altitude + Blockly.Msg.MSG.catSensor + " MS5611")
.setCheck("var");
this.appendValueInput('VAR')
.appendField(Blockly.Msg.MIXLY_REF_TO_PRESSURE);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_CAL_TO_ALTITUDE);
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setInputsInline(true);
}
};
export const sensor_QMC5883L_extern = {
init: function () {
this.setColour(SENSOR_EXTERN_HUE);