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