Documentation ¶
Overview ¶
Package mcp4725 allows interfacing with the MCP4725 DAC.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCP4725 ¶
type MCP4725 struct { // Bus to communicate over. Bus embd.I2CBus // Addr of the sensor. Addr byte // contains filtered or unexported fields }
MCP4725 represents a MCP4725 DAC.
func (*MCP4725) SetPersistedVoltage ¶
SetPersistedVoltage sets the voltage and programs the EEPROM so that the voltage is restored on reboot.
func (*MCP4725) SetVoltage ¶
SetVoltage sets the output voltage.
Click to show internal directories.
Click to hide internal directories.