code: def mode(self):
          
          self._mode, value = self.get_attr_string(self._mode, 'mode')
          return value
docs: Reading returns the currently selected mode. Writing sets the mode.
          Generally speaking when the mode changes any sensor or motor devices
          associated with the port will be removed new ones loaded, however this
          this will depend on the individual driver implementing this class.