iP Solutions has created a Serial Peripheral Interface (SPI) command-line utility for the Raspberry Pi (www.raspberrypi.org) platform. The utility, spincl, is licensed under Open Source GNU GPLv3 and is being offered by iP Solutions as a free download with source included.
Although a C library exists for the Broadcom bcm2835 with an SPI Application Programming Interface (API) among other things, there are reasons to have a command-line utility, which can be invoked from a shell command line or from within a script. A command-line utility allows easy testing and debugging of SPI slave devices without having to develop a C executable. Additionally, it provides a simple way for bash and python scripts to access the SPI master of the BCM2835 on Raspberry Pi. Although the raspian distribution provides GPIO libraries with the included python installation it doesn’t include an SPI library. spincl, on the other hand, can be invoked from a python (or bash) script. Continue reading →