mcp4725

package
v0.0.0-...-76dc376 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MCP4725

type MCP4725 struct {
	// contains filtered or unexported fields
}

MCP4725 is a driver for the MCP4725 i2c 12 bits DAC

func New

func New(bus byte, address byte) (*MCP4725, error)

New creates a new MCP4725 driver on a i2c bus of the Edison

func (MCP4725) SetValue

func (dac MCP4725) SetValue(value uint16) error

SetValue sets the output value of the DAC (only the 12 lower bits are used)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL