X13.Periphery.TWIDriver.SI7020.SI7020 C# (CSharp) Method

SI7020() public method

public SI7020 ( Topic pin ) : System
pin Topic
return System
      public SI7020(Topic pin) {
        if(pin==null) {
          throw new ArgumentNullException();
        }
        if(pin.name=="SI7020_T") {
          _T=pin as DVar<double>;
          if(_T==null) {
            throw new ArgumentException();
          }
          _H=_T.parent.Get<double>("SI7020_H");
        } else if(pin.name=="SI7020_H") {
          _H=pin as DVar<double>;
          if(_H==null) {
            throw new ArgumentException();
          }
          _T=_H.parent.Get<double>("SI7020_T");
        } else {
          throw new ArgumentException();
        }
        _present=_T.Get<bool>("present");
        _present.saved=false;
        _present.value=false;
        Reset();
      }
      public override bool VarChanged(Topic snd, bool delete) {