Documentation
¶
Overview ¶
Package pcf8591 implements a driver for the PCF8591 Analog to Digital/Digital to Analog Converter.
Datasheet: https://www.nxp.com/docs/en/data-sheet/PCF8591.pdf
Index ¶
Constants ¶
View Source
const PCF8591_ENABLE_DAC = 0x40
control bit for DAC
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 {
Address uint16
CH0 ADCPin
CH1 ADCPin
CH2 ADCPin
CH3 ADCPin
// contains filtered or unexported fields
}
Device wraps PCF8591 ADC functions.
func (*Device) Configure ¶
func (d *Device) Configure()
Configure here just for interface compatibility.
Click to show internal directories.
Click to hide internal directories.