Search in Pinguino World !!

Tuesday, January 11, 2011

Python Pinguino object

A Pinguino object for processing was developped by Stephane Cousot. Now a similar object exist with Python !!
Yeison Cardona wrote this object to use Pinguino with Python without knowledge of C programming. The pinguino side software use CDC to communicate with the computer. The computer use python to drive outputs, read analog inputs and many other things.

It is very simple to use, this is a simple example to blink 2 leds:

from pynguino import PinguinoProcessing
import time

pinguino
=PinguinoProcessing()
print pinguino.Conect('/dev/ttyACM0') # Choose the port for Pinguino

led1
=1
led2
=7
tempo
=0.2
while True:
time
.sleep(tempo)
pinguino
.digitalWrite(led1,"high")
pinguino
.digitalWrite(led2,"low")
time
.sleep(tempo)
pinguino
.digitalWrite(led1,"low")
pinguino
.digitalWrite(led2,"high")
More info on the project website:
http://code.google.com/p/pinno-processing/

1 comment:

Anonymous said...

Hi, I'm Andrés from Argentina. I'm using both pingüino 18f2550 and 18f4550 testing with python modules pynguino......works perfect!!

Now i want to create a python egg to use pynguino + pinguino + android the same way i do it with pc.
I already have Scripting layer for android SL4A and python installed on an android device...what's missing is a python egg with pynguino module for testing.......if someone can help?? would be great.....greatings everyone!!