Documentation ¶
Overview ¶
Package mcp3w0c provides device drivers for MCP3004/3008/3204/3208 SPI ADCs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCP3w0c ¶
MCP3w0c reads ADC values from a connected Microchip MCP3xxx family device.
Supported variants are MCP3004/3008/3204/3208. The w indicates the width of the device (0 => 10, 2 => 12) and the c the number of channels. The two data pins, di and do, may be tied and connected to a single GPIO pin.
func NewMCP3008 ¶
NewMCP3008 creates a MCP3008.
func NewMCP3208 ¶
NewMCP3208 creates a MCP3208.
func (*MCP3w0c) ReadDifferential ¶
ReadDifferential returns the value of a differential pair read from the ADC.
Click to show internal directories.
Click to hide internal directories.