code: def write_iodir(self, iodir=None):
          
          if iodir is not None:
              self.iodir = iodir
          self._device.writeList(self.IODIR, self.iodir)
docs: Write the specified byte value to the IODIR registor.  If no value
          specified the current buffered value will be written.