Re: C++ to python for LED Matrix

2014-02-01 Thread Michael Torrie
Yes you could use Python for this sort of thing. The link you posted is just using a kernel spi driver that Python can write to just as well as C++ can (via it's /dev/spidev0.0 file). There is a python library that can talk to SPI in Python on the pi: http://www.100randomtasks.com/simple-spi-on-

Re: C to Python

2009-12-11 Thread Stefan Behnel
Benjamin Peterson, 10.12.2009 20:26: > Emeka writes: >> I am finding it difficult getting my head around PyObject_CallObject(x,y). I > need a gentle and thorough introduction to it. I also need examples. Could > someone come to my need? > > PyObject_CallFunction is probably easier to use. Hmm, I

Re: C to Python

2009-12-10 Thread Benjamin Peterson
Emeka gmail.com> writes: > > > Hello All, >   > I am finding it difficult getting my head around PyObject_CallObject(x,y). I need a gentle and thorough introduction to it. I also need examples. Could someone come to my need? PyObject_CallFunction is probably easier to use. http://docs.python.o

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

Re: C++ to Python?

2006-10-10 Thread Tom Plunket
Roman Yakovenko wrote: > you want to find some kind of "translator" > > C++ code: >std::cout << 1; > translator output: >print 1 > > Am I right? If so, I am pretty sure that such "translator" does not > exist - too complex. ...however such a "refactor" is easy for a human to do. What t

Re: C++ to Python?

2006-10-10 Thread Roman Yakovenko
On 10/10/06, Frank Martinez <[EMAIL PROTECTED]> wrote: > Hi, Roman. > Thanks. I seem a bit confused. Does Py++ actually convert the C++ code to > Python or does it just provide a wrapper to C++ code? A second one. Now when I read your mail one more time, I think I was wrong, because you want to

Re: C++ to Python?

2006-10-10 Thread Frank Martinez
Hi, Roman. Thanks.  I seem a bit confused.  Does Py++ actually convert the C++ code to Python or does it just provide a wrapper to C++ code? You say tomater, I zader matermorts. -- Coach Z, Homestarrunner.com On Oct 10, 2006, at 3:55 PM, Roman Yakovenko wrote:On 10/10/06, Frank Martinez <[EMAIL PRO

Re: C++ to Python?

2006-10-10 Thread Roman Yakovenko
On 10/10/06, Frank Martinez <[EMAIL PROTECTED]> wrote: > Hi, Everybody! > Does anyone know of a cpp2py type application? Without going into details, > I need to port a bunch of C++ code to Python. Any such > converter/information would be helpful. > Thanks. Take a look on Py++( http://language