 // 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 (manual_on==2) { analogWrite(DIMM_pin[i], DIMM_actual[i]); }
      if (manual_on==0) { analogWrite(DIMM_pin[i], 0); }
      if (manual_on==1) { analogWrite(DIMM_pin[i], DIMM_value[i]); }
    
      if (menu_mode==-2) {
        lcd.setCursor(LED_pos[i], LED_line[i]);


  } // 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);
}


