Skip to content

Commit

Permalink
Removing support for humidity, temperature, gas and flame sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkm committed Dec 28, 2018
1 parent 435ae98 commit 18d5645
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
24 changes: 0 additions & 24 deletions src/ext/libraries/smt/js/smt.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,30 +254,6 @@
}
getPackage(nextID,deviceId,0,ax);
};
ext.getHumiture = function(nextID,port,valueType){
var deviceId = 23;
if(typeof port=="string"){
port = ports[port];
}
if(typeof valueType=="string"){
valueType = ("humidity" == valueType) ? 0 : 1;
}
getPackage(nextID,deviceId,port,valueType);
};
ext.getFlame = function(nextID,port){
var deviceId = 24;
if(typeof port=="string"){
port = ports[port];
}
getPackage(nextID,deviceId,port);
};
ext.getGas = function(nextID,port){
var deviceId = 25;
if(typeof port=="string"){
port = ports[port];
}
getPackage(nextID,deviceId,port);
};
ext.gatCompass = function(nextID,port){
var deviceId = 26;
if(typeof port=="string"){
Expand Down
7 changes: 0 additions & 7 deletions src/ext/libraries/smt/smt.s2e
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
["R", "3-axis gyro %d.GyroAxis angle","getGyro","X-Axis",
{"encode":"{d0}","setup":"gyro.begin();\n","inc":"","def":"MeGyro gyro;\n","work":"gyro.getAngle({0})","loop":"gyro.update();\n"}],

["R", "humiture sensor %d.normalPort %d.humiture", "getHumiture", "Port3", "humidity", {"encode":"", "setup":"", "inc":"", "def":"MeHumiture humiture_{0}({0});\n", "work":"humiture_{0}.getValue({1})", "loop":"humiture_{0}.update();\n"}],
["R", "flame sensor %d.blackPorts", "getFlame", "Port7", {"encode":"", "setup":"", "inc":"", "def":"MeFlameSensor flameSensor_{0}({0});\n", "work":"flameSensor_{0}.readAnalog()", "loop":""}],
["R", "gas sensor %d.blackPorts", "getGas", "Port7", {"encode":"", "setup":"", "inc":"", "def":"MeGasSensor gasSensor_{0}({0});\n", "work":"gasSensor_{0}.readAnalog()", "loop":""}],
["B", "touch sensor %d.bluePorts","getTouchSensor","Port3",{"encode":"{d0}","setup":"","inc":"","def":"MeTouchSensor touchSensor_{0}({0});\n","work":"touchSensor_{0}.touched()","loop":""}],
["B", "button %d.blackPorts %m.button_key pressed","getButton","Port7","key1",{"encode":"{d0}","setup":"","inc":"","def":"Me4Button buttonSensor_{0}({0});\n","work":"(buttonSensor_{0}.pressed()=={1})","loop":"buttonSensor_{0}.pressed();"}],
["-"],
Expand Down Expand Up @@ -100,7 +97,6 @@
"encodeType":["time","turns"],
"stepType":["time","steps"],
"button_key":["key1","key2","key3","key4"],
"humiture":["humidity","temperature"]
},
"values":{
"all":0,
Expand Down Expand Up @@ -138,15 +134,12 @@
"infrared":16,
"limitswitch":21,
"pirmotion":15,
"temperature":2,
"gyro":6,
"time":0,
"turns":1,
"steps":1,
"Address 1":0x70,
"Address 2":0x71,
"humidity":0,
"temperature":1,
"key1":1,
"key2":2,
"key3":3,
Expand Down

0 comments on commit 18d5645

Please sign in to comment.