The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

Hardware SPI in Python for Raspberry Pi

by HooctAwnFonix on Sat Jan 05, 2013 3:05 pm

Hey guys,

I saw Adafruit has a nice tutorial on how to bit-bang the SPI in Python but I really wanted to use the hardware SPI in Python so I did a little project where I wrote a C extension for Python. I'd never done that before and I thought it was fun AND useful so I wrote it up here:

You can just check out the code on Github:

I don't know if this exists yet but if it does I couldn't find it. Hopefully somebody here finds it useful...
Posts: 77
Joined: Tue Sep 13, 2011 10:47 am
Location: Cambridge, MA