Thank you Thomas that was helpful, but not what I am trying to do.
What i am trying to do is send a serial string out using the
ftdi_write() method.
can I do the following with out breaking anything?
Change the function to take a string instead of unsigned char *
see:
http://www.contactor.se/~matsl/HowtoReturnUnsignedCharFromPythonUsingSwig.html
Many Thanks
Jonathan Moreton
On Tue, 2010-03-16 at 22:58 +0100, Thomas Jarosch wrote:
> Hello Jonathan,
>
> On 03/13/2010 05:20 PM, Jonathan Moreton wrote:
> > I am using the python bindings for libftdi what type do i need to set
> > the buf to when using ftdi_write_data as I get
> >
> > TypeError: in method 'ftdi_write_data', argument 2 of type 'unsigned
> > char *'
>
> I found a small piece of python code using the wrapper
> on this german speaking website:
> http://www.auxnet.de/blog/blog-post/2010/02/23/usb-geraet-per-libftdi-in-c-und-python-ansprechen-debianubuntu.html
>
> Scroll down for the code. Maybe it helps.
>
> Cheers,
> Thomas
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
>
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|