Documentation ¶
Overview ¶
Package mcp3008 implements a driver for the MCP3008 Analog to Digital Converter.
Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/21295d.pdf
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADCPin ¶
ADCPin is the implementation of the ADConverter interface.
type Device ¶
type Device struct { CH0 ADCPin CH1 ADCPin CH2 ADCPin CH3 ADCPin CH4 ADCPin CH5 ADCPin CH6 ADCPin CH7 ADCPin // contains filtered or unexported fields }
Device wraps MCP3008 SPI ADC.
func (*Device) Configure ¶
func (d *Device) Configure()
Configure sets up the device for communication
Click to show internal directories.
Click to hide internal directories.