code: def direction(self):
          
          if _get_bit(self._mcp.iodir, self._pin):
              return digitalio.Direction.INPUT
          return digitalio.Direction.OUTPUT
docs: The direction of the pin, either True for an input or
          False for an output.