proximity remove some stuff
This commit is contained in:
Родитель
03b2b3421a
Коммит
c900eeab24
|
@ -13,7 +13,6 @@ var pin = argv[3];
|
|||
if (pin == undefined)
|
||||
pin = 11;
|
||||
var app = express();
|
||||
//led on pin 11
|
||||
|
||||
//handle post/put
|
||||
app.use(function (req, res, next) {
|
||||
|
|
|
@ -40,12 +40,12 @@ function setDirection(pin){
|
|||
/*setInterval(function(){
|
||||
console.log("---------set interval--------");
|
||||
readProximityState(pin);
|
||||
//speak();
|
||||
},3000);*/
|
||||
//gpio.setDirection(pin, "input" , function(){
|
||||
//console.log("-----i am in set dirrection------");
|
||||
//readLightState(pin, undefined);
|
||||
//});
|
||||
speak();
|
||||
},3000);
|
||||
gpio.setDirection(pin, "input" , function(){
|
||||
console.log("-----i am in set dirrection------");
|
||||
readLightState(pin, undefined);
|
||||
});*/
|
||||
});
|
||||
}
|
||||
function speak(){
|
||||
|
@ -94,4 +94,3 @@ app.get("/", function(req, res) {
|
|||
|
||||
app.listen(port);
|
||||
setDirection(pin);
|
||||
//startReading(pin);
|
||||
|
|
Загрузка…
Ссылка в новой задаче