libftdi Archives

Subject: Re: Python bindings

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Tarek Heiland <tarek@xxxxxxxxxxxxxxx>
Date: Wed, 17 Mar 2010 09:18:22 +0100
On Wednesday, 17. March 2010 02:16:14 Jonathan Moreton wrote:
> 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

This sounds like a good change though it doesn't seem backward compatible
to me. Maybe Tarek can comment on this one as he wrote the python bindings.
Can we overload the argument in python?


Cheers,
Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread