code: @Override
      public ButtonState getState() {
          if(pin.isState(pressedState))
              return ButtonState.PRESSED;
          else
              return ButtonState.RELEASED;
      }
docs: Return the current switch state based on the
  GPIO digital output pin state.
  
  @return ButtonState