ads1115

package
v0.0.0-...-58b2e9f Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ads1115 allows interfacing with the ads1115 5-channel, 16-bit ADC through I²C protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADS1115

type ADS1115 struct {
	Addr byte

	Bus embd.I2CBus
}

ADS1115 represents a ADS1115 16bit ADC.

func New

func New(bus embd.I2CBus, addr byte) *ADS1115

New creates a representation of the ads1115 converter

func (*ADS1115) Read

func (d *ADS1115) Read() (res uint16, err error)

AnalogValueAt returns the analog value at the given channel of the converter.

Jump to

Keyboard shortcuts

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