libftdi Archives

Subject: Re: ftdi_read_data, ftdi_read_pins

From: Petr Jakeš <petr.jakes.tpc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx, thomas.jarosch@xxxxxxxxxxxxx
Date: Fri, 30 Jul 2010 00:44:41 +0200
Dear all,

I am using libftdi-0.18 Python binding with Python 2.6 and Ubuntu 10.4.

I am able to configure the UM232R to bitbang mode and set/unset signals on output pins using Python bindig to libftdi.

As far as good.

The problem is I am not able to read input pins using ftdi_read_data and/or ftdi_read_pins.

To be more specific, I do not know, where data gathered using read methods are.

following snippet works (I mean no Error messages),

pins = ""
ftdi.ftdi_read_pins(ftdic, pins)

buf = ""
ftdi.ftdi_read_data(ftdic, buf, 0x01)

But pins and buf variables are unchanged. It means the content of this variables is "".

Thank for your hints.

Petr Jakes

libftdi - see for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx

Current Thread
  • Re: ftdi_read_data, ftdi_read_pins, Petr Jakeš <=