bmp085

package
v0.0.0-...-3574e65 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package bmp085 allows interfacing with Bosch BMP085 barometric pressure sensor. This sensor has the ability to provided compensated temperature and pressure readings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BMP085

type BMP085 struct {
	Bus  embd.I2CBus
	Poll int
	// contains filtered or unexported fields
}

BMP085 represents a Bosch BMP085 barometric sensor.

func New

func New(bus embd.I2CBus) *BMP085

New returns a handle to a BMP085 sensor.

func (*BMP085) Altitude

func (d *BMP085) Altitude() (float64, error)

Altitude returns the current altitude reading.

func (*BMP085) Close

func (d *BMP085) Close()

Close.

func (*BMP085) Pressure

func (d *BMP085) Pressure() (int, error)

Pressure returns the current pressure reading.

func (*BMP085) Run

func (d *BMP085) Run()

Run starts the sensor data acquisition loop.

func (*BMP085) Temperature

func (d *BMP085) Temperature() (float64, error)

Temperature returns the current temperature reading.

Jump to

Keyboard shortcuts

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