internal DHTTemperatureAndHumiditySensor(GrovePi device, Pin pin, DHTModel model)
 {
     if (device == null) throw new ArgumentNullException(nameof(device));
     _device = device;
     _pin = pin;
     _model = model;
 }
 internal DHTTemperatureAndHumiditySensor(GrovePi device, Pin pin, DHTModel model)
 {
     if (device == null)
     {
         throw new ArgumentNullException(nameof(device));
     }
     _device = device;
     _pin    = pin;
     _model  = model;
 }
Exemple #3
0
 public IDHTTemperatureAndHumiditySensor DHTTemperatureAndHumiditySensor(Pin pin, DHTModel model)
 {
     return(DoBuild(x => new DHTTemperatureAndHumiditySensor(x, pin, model)));
 }