From: ken staton <ken.staton@gm...> - 2006-11-23 05:14:00
On 11/22/06, Warren Jackson <wj@...> wrote:
> Sorry if this is a newbie question, but what is the best way to access the
> GPIO in Python?
> Do I have to write the basics in C and then cType or SWIG that into python?
depends on how fast you want to access the gpio.
you could write a driver and access the driver from c that is wrapped with SWIG.
or you could us os.system:
os.system('echo "GPIO out set" > /proc/gpio/GPIO66')