Example #1
0
 @Override
 public PinPullResistance getPullResistance(GpioPin pin) {
   // ensure the requested pin has been provisioned
   if (!pins.contains(pin)) {
     throw new GpioPinNotProvisionedException(pin.getPin());
   }
   // get pin pull resistance
   return pin.getPullResistance();
 }