 // 2014.06.20 v. 1.2 - partaisiju DIMMeasanu uz 1 sekundes intervalu
 // 2014.07.19 v. 2.0 - izlaboju lielu kludu DIMMesanas algoritma, pieliku DIMM rezima indikaciju
 // 2014.07.21 v. 2.1 - koda optimizacija, iznemtas liekas strukturas un mainigie
+// 2014.07.24 v. 2.11 - pieliku LED atslegsanu ja parkarst radiators
 
 // ~/Documents/Arduino/350W LED Fixture LDD/led_fixture
 

      if (DIMM_value[cha]!=DIMM_temp[cha]){
        BarL(DIMM_value[cha]);
        DIMM_temp[cha]=DIMM_value[cha];
        analogWrite(DIMM_pin[cha], DIMM_value[cha]);
      }
      lcd.setCursor(1, 2);
      lcd.print(toTriple(DIMM_value[cha]));


  } // for 

}

// *********************************************************************************************
//            LED light analogWrite emulate
// *********************************************************************************************
void aWrite (pin,value){
 if (temp[0]>=fan_warning){ // 50% of LED's power
 value=value/2;
 }

 if (temp[0]>=fan_alert){ // turn off all LED's
 value=0;
 }
 analogWrite(pin, value);
}


