adc

package
v0.0.0-...-34554ae Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2015 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupADC

func CleanupADC() error

func Init

func Init(deviceTreePrefix string) error

Types

type ADC

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

func NewADC

func NewADC(ain Name) (*ADC, error)

func (*ADC) AIn

func (adc *ADC) AIn() Name

func (*ADC) Close

func (adc *ADC) Close() error

func (*ADC) ReadRaw

func (adc *ADC) ReadRaw() (value float32)

func (*ADC) ReadValue

func (adc *ADC) ReadValue() (value float32)

type Name

type Name string
const (
	AIN0 Name = "AIN0"
	AIN1 Name = "AIN1"
	AIN2 Name = "AIN2"
	AIN3 Name = "AIN3"
	AIN4 Name = "AIN4"
	AIN5 Name = "AIN5"
	AIN6 Name = "AIN6"
)

Jump to

Keyboard shortcuts

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