Updated Tellstick drivers and Switched from System.ou.print to Logger
Former-commit-id: 62d5bf468e366ecf4056602de469c151311c9a12
This commit is contained in:
parent
c2138902f0
commit
aa656cdc05
27 changed files with 125 additions and 199 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue