def to_board(self): self._open() self.ftdi.set_bitmode(mode=Ftdi.BitMode(0x20), bitmask=0xf0) self._close()
def to_host(self): self._open() self.ftdi.set_bitmode(mode=Ftdi.BitMode(0x20), bitmask=0xf1) self._close()