ads1115

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADS1115

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

ADS1115 represents an ADS1115 over I2C. The current implementation assumes that the device uses its default I2C address, 0x48.

func New

func New(pin int) ADS1115

func (ADS1115) ReadVoltage

func (a ADS1115) ReadVoltage() (float64, error)

Jump to

Keyboard shortcuts

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