bmp180

package
Version: v0.0.0-...-7d9f545 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package bmp180 allows interfacing with Bosch BMP180 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 BMP180

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

BMP180 represents a Bosch BMP180 barometric sensor.

func New

func New(bus embd.I2CBus) *BMP180

New returns a handle to a BMP180 sensor.

func (*BMP180) Altitude

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

Altitude returns the current altitude reading.

func (*BMP180) Close

func (d *BMP180) Close()

Close.

func (*BMP180) Pressure

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

Pressure returns the current pressure reading.

func (*BMP180) Run

func (d *BMP180) Run()

Run starts the sensor data acquisition loop.

func (*BMP180) Temperature

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

Temperature returns the current temperature reading.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto