Re: C to python conversion

2008-04-13 Thread Ivan Illarionov
On Apr 13, 7:58 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 12 Apr 2008 07:58:47 -0300, Michele Petrazzo > <[EMAIL PROTECTED]> escribió: > > > > > Hi all, > > I'm trying to translate a simple C code into a python + ctypes (where > > need), but I have some problems on char conversio

Re: C to python conversion

2008-04-12 Thread Gabriel Genellina
En Sat, 12 Apr 2008 07:58:47 -0300, Michele Petrazzo <[EMAIL PROTECTED]> escribió: > Hi all, > I'm trying to translate a simple C code into a python + ctypes (where > need), but I have some problems on char conversion. The code have > to work on Linux and talk with the serial port. I think that

Re: C to python conversion

2008-04-12 Thread Paul McGuire
On Apr 12, 5:58 am, Michele Petrazzo <[EMAIL PROTECTED]> wrote: > Hi all, > I'm trying to translate a simple C code into a python + ctypes (where > need), but I have some problems on char conversion. The code have > to work on Linux and talk with the serial port. I think that the problem > is that

C to python conversion

2008-04-12 Thread Michele Petrazzo
Hi all, I'm trying to translate a simple C code into a python + ctypes (where need), but I have some problems on char conversion. The code have to work on Linux and talk with the serial port. I think that the problem is that I don't translate correctly the strings. C code: #define START 0x33 #defi