示例#1
0
        public void Regulate()
        {
            var t = TempSensor_.GetTemp();

            if (t < _threshold)
            {
                Heater_.TurnOn();
            }
            else
            {
                Heater_.TurnOff();
            }
        }
示例#2
0
 public int GetCurTemp()
 {
     return(TempSensor_.GetTemp());
 }