tompreston / spipy

A Python SPI module
GNU General Public License v2.0
0 stars 2 forks source link

Why spipy? #2

Closed bulletmark closed 11 years ago

bulletmark commented 11 years ago

I hope you don't mind me asking the obvious but there's already a few python spidev wrappers in PyPi (e.g. spidev, spilib, wiringpi and probably more if I look harder), why create another one?

The more custom software required for the piface board the harder it is for newbies to get going.

tompreston commented 11 years ago

I completely agree with your comment about custom software and new users. When we first wrote the software for PiFace there were not many ideal solutions to accessing SPI within Python so we created our own (with some help).

Can you recommend any Python SPI API's? Is there a preferred one?

bulletmark commented 11 years ago

I would consider including spilib as prerequisite, or because the code is so small and trivial, probably easiest to just include it within pifacedigital (with attribution even though the license is "DTFWYW"!). Spilib just uses native python ioctl() calls so there is no need for the user to have to compile a C module and no need for build packages etc.

tompreston commented 11 years ago

PiFace Digital IO has been updated to talk to SPI natively. This module is no longer required. Thanks!