No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
halherta Merge pull request #1 from Snkz/master
latest kernel update requires transfer struct to be zeroed
Latest commit 732fdad Mar 18, 2015

README.md

halherta-RaspberryPi-mcp3008Spi

Author: Hussam Al-Hertani

Description: The mcp3008Spi class enables the Raspberry Pi to communicate with the MCP3008 SPI ADC using spidev. The class can be easily modified to enable the Raspberry Pi to communicate with other SPI devices.

============================================================================================================ For more information please visit : http://hertaville.com/2013/07/24/interfacing-an-spi-adc-mcp3008-chip-to-the-raspberry-pi-using-c/

======================================================================================== To build example binary natively on the Raspberry Pi:

g++ -fpermissive -Wall mcp3008Spi.cpp mcp3008SpiTest.cpp -o outBin

Make sure that the mcp3008Spi.h header file is in the work directory.