code: @Override
      public SwitchState getState() {
          if(pin.isState(onState))
              return SwitchState.ON;
          else
              return SwitchState.OFF;
      }
docs: Return the current switch state based on the
  GPIO digital output pin state.
  
  @return SwitchState