mcp3208

package
v0.0.0-...-b9caf1c Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mcp3208

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

Mcp3208 ..

func NewMcp3208

func NewMcp3208(spi spi.Conn, label string) (*Mcp3208, error)

NewMcp3208 ..

func (*Mcp3208) GetValues

func (m *Mcp3208) GetValues(chstart uint, n uint) ([]uint16, time.Time, error)

GetValues retrieves n channels from channel chstart. Returns 12 bit output scaled to 16 bits.

func (*Mcp3208) Label

func (m *Mcp3208) Label() string

Label ..

Jump to

Keyboard shortcuts

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