The MCP3202 Analog to Digital Converter (ADC) allows user to read analog voltages via SPI interface.

API Reference

How To Connect

Install the package with: go get

You must pass in an Adaptor that supports the spi.Connector interface to use with this Driver.

The MCP3202Driver implements the AnalogPinner interface, so you can use any of the AIO Drivers with the MCP3202Driver.

d := spi.NewMCP3202(adaptor)

How To Use

Example using a MCP3202 Analog-to-Digital Converter

// code here