示例#1
0
 public IoTButton(Connectors gpio)
 {
     pin = new IoTPin(gpio);
     pin.SetDirection(IoTPinDirection.DirectionIn);
     pin.SetActiveType(IoTActiveType.ActiveLow);
     IsPressed = false;
     tracer.Verbose("Initial value: " + IsPressed);
 }
 public IoTSensor(Connectors gpio)
 {
     pin = new IoTPin(gpio);
     pin.SetDirection(IoTPinDirection.DirectionIn);
     pin.SetActiveType(IoTActiveType.ActiveLow);
     HasPresence = pin.Value;
     tracer.Verbose("Initial value: " + HasPresence);
 }
 public IoTRfReceiver(Connectors gpio)
 {
     pin = new IoTPin(gpio);
     pin.SetDirection(IoTPinDirection.DirectionIn);
     pin.SetActiveType(IoTActiveType.ActiveLow);
 }