Updated Tellstick drivers and Switched from System.ou.print to Logger

Former-commit-id: 62d5bf468e366ecf4056602de469c151311c9a12
This commit is contained in:
Ziver Koc 2015-11-20 21:29:55 +01:00
parent c2138902f0
commit aa656cdc05
27 changed files with 125 additions and 199 deletions

View file

@ -41,10 +41,12 @@ void loop()
{
currentTime = millis();
uint16_t lux = LightSensor.GetLightIntensity();
if(lux > 100 && !light){
//Serial.print("lux=");
//Serial.println(lux);
if(lux > 40 && !light){
light = true;
impulseCount++;
}else if(lux < 100){
}else if(lux < 40){
light = false;
}
if(currentTime - previousTime > 60000) {